The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: update gotrue variables
Qiao Hane28fde12f7e9
diff --git a/studio/.env b/studio/.envindex ee686048dfc..d872e21ab40 100644--- a/studio/.env+++ b/studio/.env@@ -8,3 +8,9 @@ SUPABASE_URL=http://localhost:8000SUPABASE_PUBLIC_URL=https://localhost:8443SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GESUPABASE_SERVICE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q++# TODO: evaluate these variables at runtime instead+# https://nextjs.org/docs/basic-features/environment-variables#loading-environment-variables+NEXT_PUBLIC_SITE_URL=http://localhost:3000+NEXT_PUBLIC_GOTRUE_URL=$SUPABASE_URL/auth/v1+NEXT_PUBLIC_HCAPTCHA_SITE_KEY=10000000-ffff-ffff-ffff-000000000001diff --git a/studio/lib/gotrue.ts b/studio/lib/gotrue.tsindex 4ed1778d205..47094e91186 100644--- a/studio/lib/gotrue.ts+++ b/studio/lib/gotrue.ts@@ -1,12 +1,9 @@import { GoTrueClient, User } from '@supabase/gotrue-js'-export const GOTRUE_URL =- process.env.NEXT_PUBLIC_GOTRUE_URL || `${process.env.SUPABASE_URL}/auth/v1`-export const STORAGE_KEY = process.env.NEXT_PUBLIC_STORAGE_KEY || 'supabase.dashboard.auth.token'export const auth = new GoTrueClient({- url: GOTRUE_URL,+ url: process.env.NEXT_PUBLIC_GOTRUE_URL,storageKey: STORAGE_KEY,detectSessionInUrl: true,})