feat: add frontend prototype

This commit is contained in:
Philipp
2026-06-10 20:14:46 +02:00
parent 772ed6bf8d
commit b08b52dd1b
10 changed files with 760 additions and 26 deletions
+2
View File
@@ -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
}
+1
View File
@@ -104,6 +104,7 @@ func clearConfigEnv(t *testing.T) {
"SUPABASE_ISSUER",
"SUPABASE_JWT_SECRET",
"REDIS_ADDR",
"APP_SITE_URL",
} {
t.Setenv(key, "")
}