File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
dev-packages/e2e-tests/test-applications/supabase-nextjs/lib Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11import { createClient } from '@supabase/supabase-js' ;
22import * as Sentry from '@sentry/nextjs' ;
33
4+ // These are the default development keys for a local Supabase instance
5+ const NEXT_PUBLIC_SUPABASE_URL = "http://localhost:54321" ;
6+ const NEXT_PUBLIC_SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImV4cGxvcmV0ZXN0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2
7+ const SUPABASE_SERVICE_ROLE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImV4cGxvcmV0ZXN0Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsIml
8+
49export const supabase = createClient (
5- process . env . NEXT_PUBLIC_SUPABASE_URL ?? '' ,
6- process . env . SUPABASE_SERVICE_ROLE_KEY ?? process . env . NEXT_PUBLIC_SUPABASE_ANON_KEY ?? '' ,
10+ NEXT_PUBLIC_SUPABASE_URL ,
11+ SUPABASE_SERVICE_ROLE_KEY ?? NEXT_PUBLIC_SUPABASE_ANON_KEY ,
712) ;
813
914Sentry . addIntegration (
You can’t perform that action at this time.
0 commit comments