feat: add frontend prototype
This commit is contained in:
@@ -21,6 +21,7 @@ type Config struct {
|
||||
SupabaseIssuer string
|
||||
SupabaseJWTSecret string
|
||||
RedisAddr string
|
||||
AppSiteURL string
|
||||
}
|
||||
|
||||
func Load() (Config, error) {
|
||||
@@ -50,6 +51,7 @@ func Load() (Config, error) {
|
||||
SupabaseIssuer: os.Getenv("SUPABASE_ISSUER"),
|
||||
SupabaseJWTSecret: os.Getenv("SUPABASE_JWT_SECRET"),
|
||||
RedisAddr: getenv("REDIS_ADDR", "localhost:6379"),
|
||||
AppSiteURL: getenv("APP_SITE_URL", "http://localhost:5173"),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +104,7 @@ func clearConfigEnv(t *testing.T) {
|
||||
"SUPABASE_ISSUER",
|
||||
"SUPABASE_JWT_SECRET",
|
||||
"REDIS_ADDR",
|
||||
"APP_SITE_URL",
|
||||
} {
|
||||
t.Setenv(key, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user