fix: remove all hardcoded localhost, cache-bust config.js, gitignore generated config.js

This commit is contained in:
Lago
2026-04-17 22:58:14 +02:00
parent 27c55f3e69
commit bb7a90ea74
6 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { createClient } from "https://esm.sh/@supabase/supabase-js@2.45.4";
const SUPA_URL = window.MCCARS_CONFIG?.SUPABASE_URL || "http://localhost:54321";
const SUPA_URL = window.MCCARS_CONFIG?.SUPABASE_URL ?? "";
const SUPA_KEY = window.MCCARS_CONFIG?.SUPABASE_ANON_KEY || "";
// Only the public anon key lives here. Write access is gated by RLS policies