Files
supabase/examples/nextjs-with-supabase-auth/utils/initSupabase.js
Thor 雷神 Schaeff af99c593bc feat: Add Supabase Auth components, update password, and SSR Cookie example. (#512)
* feat(examnples/nextjs-with-supabase-auth): Add Supabase  UI Auth components.

* feat(examnples/nextjs-with-supabase-auth): Add SSR Cookie example.

* Add the Supabase Vercel deploy integration.

* chore: add basic styling and layout of Auth component.

• used @supabase/ui to help layout text and style around the Auth component

* fix nextjs link

* style the SSR example

* remove unused imports

* chore: update dependencies

Co-authored-by: mildtomato <[email protected]>
2021-01-15 14:54:46 +08:00

7 lines
178 B
JavaScript

import { createClient } from '@supabase/supabase-js'
export const supabase = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL,
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY
)