- Create an
.env.localfile in the main folder. - Set
NEXT_PUBLIC_SUPABASE_URLto the Supabase URL - Set
NEXT_PUBLIC_SUPABASE_ANON_KEYto the anon public key - Set
SUPABASE_SERVICE_ROLEto theservice_role
the final format of .env.local should be:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=<anon_key>
SUPABASE_SERVICE_ROLE=<service_role>
all three values can be found in the supabase settings by going to project settings and data api
- ensure that react and next js are installed. run
npm ito initialize all packages andnpm run devto start.
the project should be ready to work on from here.