fix10
This commit is contained in:
@@ -36,7 +36,7 @@ func Load() Config {
|
||||
return Config{
|
||||
DBDriver: envOrDefault("DB_DRIVER", "postgres"),
|
||||
Port: envOrDefault("PORT", "8080"),
|
||||
APIURL: envOrDefault("API_URL", ""),
|
||||
APIURL: strings.TrimRight(envOrDefault("API_URL", ""), "/"),
|
||||
DatabaseURL: envOrDefault("DATABASE_URL", "postgres://surprise:surprise_dev_password@localhost:5432/surprise?sslmode=disable"),
|
||||
SQLitePath: envOrDefault("SQLITE_PATH", "./data/surprise.db"),
|
||||
CORSOrigin: envOrDefault("CORS_ORIGIN", "http://localhost:5173,http://127.0.0.1:5173"),
|
||||
|
||||
Reference in New Issue
Block a user