File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
dev-packages/e2e-tests/test-applications/supabase-nextjs/lib Expand file tree Collapse file tree 1 file changed +9
-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 =
7+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImV4cGxvcmV0ZXN0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2' ;
8+ const SUPABASE_SERVICE_ROLE_KEY =
9+ 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImV4cGxvcmV0ZXN0Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsIml' ;
10+
411export const supabase = createClient (
5- process . env . NEXT_PUBLIC_SUPABASE_URL ?? '' ,
6- process . env . SUPABASE_SERVICE_ROLE_KEY ?? process . env . NEXT_PUBLIC_SUPABASE_ANON_KEY ?? '' ,
12+ NEXT_PUBLIC_SUPABASE_URL ,
13+ SUPABASE_SERVICE_ROLE_KEY ?? NEXT_PUBLIC_SUPABASE_ANON_KEY ,
714) ;
815
916Sentry . addIntegration (
You can’t perform that action at this time.
0 commit comments