This starter configures Supabase Auth to use cookies, making the user's session available throughout the entire Next.js app - Client Components, Server Components, Route Handlers, Server Actions and Middleware.
The Vercel deployment will guide you through creating a Supabase account and project. After installation of the Supabase integration, all relevant environment variables will be set up so that the project is usable immediately after deployment 🚀
- Create a new Supabase project
- Run
npx create-next-app -e with-supabaseto create a Next.js app using the Supabase Starter template - Use
cdto change into the app's directory - Run
npm installto install dependencies - Rename
.env.local.exampleto.env.localand update the values forNEXT_PUBLIC_SUPABASE_URLandNEXT_PUBLIC_SUPABASE_ANON_KEYfrom your Supabase project's API settings - Run
npm run devto start the local development server
Check out the docs for Local Development to also run Supabase locally.