Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Starter kit for building Next.js apps with Supabase Auth, Tailwind CSS, and shadcn/ui.
The Next.js and Supabase Starter Kit is a boilerplate template maintained in the Next.js repository that pre-configures Supabase Auth to use cookies across the entire Next.js stack, with Tailwind CSS and shadcn/ui styling.
The Next.js and Supabase Starter Kit is an official example that scaffolds a Next.js app with Supabase authentication configured for cookie-based sessions. It takes a Supabase project URL and API key as environment variables and outputs a running application with password-based sign-in and sign-up screens built from the Supabase UI Library. The template works with both the App Router and Pages Router, and it is demonstrated live at demo-nextjs-with-supabase.vercel.app.
.env.local.components.json; deleting that file and re-installing shadcn/ui gives a different component style.npx create-next-app --example with-supabase and run npm run dev to serve on localhost:3000.components.json and re-installing a preferred style.npx create-next-app --example with-supabase with-supabase-app..env.example to .env.local and add NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY from your project's API settings.npm run dev to start the app on localhost:3000.Yes. The starter kit is open source and hosted in the Next.js examples directory. You only pay for whatever Supabase and Vercel usage you incur.
You need NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY, both found in your Supabase project's API settings. The example uses the new publishable key format, but legacy anon keys also work.
Yes. The template works across the entire Next.js stack, including Pages Router, App Router, Proxy, Client, and Server.
Delete components.json and re-install shadcn/ui using the installation instructions for Next.js.
