rival-black
rival-black2y ago

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
kapa.ai
kapa.ai2y ago
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:
npm create refine-app@latest -- --example with-nextjs-appdir
npm create refine-app@latest -- --example with-nextjs-appdir
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:
npm i @refinedev/supabase
npm i @refinedev/supabase
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: ----------------------
kapa.ai
kapa.ai2y ago
<@932275554655293441> kapa.ai is still learning and improving, please let us how it did by reacting below
inland-turquoise
inland-turquoise2y ago
Would you mind sharing what's the issue, so we can help? Unfortunately, it's impossible to help without any context.
wee-brown
wee-brown2y ago
Probably I have this same (with Hasura but it doesn't matter) on OSX. Solved by decreasing Nextjs version.
rival-black
rival-blackOP2y ago
@batuhanw how to install refine with stable version of app router
stormy-gold
stormy-gold2y 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.
rival-black
rival-blackOP2y ago
but in the refine app router setup, they are using experimental app router @bastianwegge .
stormy-gold
stormy-gold2y ago
Where do you see that?
rival-black
rival-blackOP2y 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.
rival-black
rival-blackOP2y ago
from their official docs
stormy-gold
stormy-gold2y 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