GomaGoma676 / nextjs-app-dir-supabase

Next.js 13 app dir with supabase πŸš€

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create new Next.js project

# npx create-next-app --example with-tailwindcss rsc-supabase --use-npm
npx create-next-app@13.2.5-canary.34 --tailwind rsc-supabase --use-npm
npm i @heroicons/react@2.0.13 @supabase/auth-helpers-nextjs@0.6.0 @supabase/supabase-js@2.1.1 zustand@4.1.4 supabase@1.27.0 date-fns@2.29.3
npm i next@13.2.5-canary.34

Generate supabase types

npx supabase login
npx supabase init
npx supabase link --project-ref your_project_id
npx supabase gen types typescript --linked > database.types.ts

About

Next.js 13 app dir with supabase πŸš€


Languages

Language:TypeScript 98.1%Language:JavaScript 1.7%Language:CSS 0.2%