rename SUPABASE_DSN to REMOTE_DSN

This commit is contained in:
lyx0 2023-08-08 01:22:49 +02:00
parent 874573ac5b
commit 2a54f591c8
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ func main() {
case "dev": case "dev":
cfg.db.dsn = os.Getenv("LOCAL_DSN") cfg.db.dsn = os.Getenv("LOCAL_DSN")
case "prod": case "prod":
cfg.db.dsn = os.Getenv("SUPABASE_DSN") cfg.db.dsn = os.Getenv("REMOTE_DSN")
} }
// Database config variables // Database config variables
cfg.db.maxOpenConns = 25 cfg.db.maxOpenConns = 25

View file

@ -6,7 +6,7 @@ TWITCH_CLIENT_ID=mycoolclientid
TWITCH_CLIENT_SECRET=mycoolclientsecret TWITCH_CLIENT_SECRET=mycoolclientsecret
LOCAL_DSN=postgres://user:password@localhost/database-name?sslmode=disable LOCAL_DSN=postgres://user:password@localhost/database-name?sslmode=disable
SUPABASE_DSN=postgresql://user:password@databaseurlfrom.supabase.com:5432/postgres REMOTE_DSN=postgresql://user:password@databaseurlfrom.supabase.com:5432/postgres
OWM_KEY=mycoolopenweatherkey OWM_KEY=mycoolopenweatherkey