Nextjs installation
There are lots of issues I am facing while installing refine with nextjs package, if anyone have created refine app with nextjs and supabase then please help me.
#nextjs #supabase
11 Replies
Hi @gautamvaishnav. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To create a refine app with Next.js and Supabase, you can follow these steps:
1. First, create a refine app with the
with-nextjs-appdir
example:
Source: With app/
Directory (https://refine.dev/docs/examples/next-js/nextjs-appdir)
2. Next, add the Supabase data provider to your existing refine app:
Source: Supabase Data Provider (https://refine.dev/docs/packages/documentation/data-providers/supabase)
3. Configure your refine app to use the Supabase data provider and set up the supabaseClient
with your Supabase URL and API key. You can find an example of how to do this in the Customizable Issue Tracker with Refine and Supabase (https://refine.dev/blog/customizable-issue-tracker-with-refine-and-supabase) blog post.
Please note that the example provided in the blog post is for a React-based refine app, so you may need to adjust the code accordingly for your Next.js app.
If you're still facing issues, please provide more specific details about the problems you're encountering, and I'll try to help you further.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@932275554655293441> kapa.ai is still learning and improving, please let us how it did by reacting below
extended-salmon•16mo ago
Would you mind sharing what's the issue, so we can help? Unfortunately, it's impossible to help without any context.
adverse-sapphire•16mo ago
Probably I have this same (with Hasura but it doesn't matter) on OSX. Solved by decreasing Nextjs version.
distinguished-blush•16mo ago
@batuhanw how to install refine with stable version of app router
eastern-cyan•16mo ago
@gautamvaishnav the documentation is really good, maybe have a look here? https://refine.dev/docs/packages/documentation/routers/nextjs/#basic-usage
Next.js | refine
refine provides router bindings and utilities for Next.js. This package will provide easy integration between refine and Next.js for both existing projects and new projects without giving up the benefits of Next.js.
distinguished-blush•16mo ago
but in the refine app router setup, they are using experimental app router
@bastianwegge .
eastern-cyan•16mo ago
Where do you see that?
distinguished-blush•16mo ago
Next.js | refine
refine provides router bindings and utilities for Next.js. This package will provide easy integration between refine and Next.js for both existing projects and new projects without giving up the benefits of Next.js.
distinguished-blush•16mo ago
from their official docs
eastern-cyan•16mo ago
I think that's specifically a project for show-casing usage of the experimental appDir. Aren't you looking for something like this? https://github.com/refinedev/refine/tree/master/examples/with-nextjs
GitHub
refine/examples/with-nextjs at master · refinedev/refine
Build your React-based CRUD applications, without constraints. 🌟 Star to support our work! - refine/examples/with-nextjs at master · refinedev/refine