Supabase and Next.js Starter Template

The fastest way to start building apps with Supabase and Next.js

Get started by editing app/page.tsx

Examples

Look in the _examples folder to see how to create a Supabase client in all the different contexts.

Client Components
app/_examples/client-component/page.tsx
Server Components
app/_examples/server-component/page.tsx
Server Actions
app/_examples/server-action/page.tsx
Route Handlers
app/_examples/route-handler.ts
Middleware
app/middleware.ts
Protected Routes
app/_examples/protected/page.tsx

Powered by Supabase