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,7 +1,7 @@
import { createClient } from "https://esm.sh/@supabase/supabase-js@2.45.4";
import { translations, REVIEWS, getLang, setLang, t, applyI18n } from "./i18n.js";
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 || "";
export const supabase = createClient(SUPA_URL, SUPA_KEY, {