fix: remove all hardcoded localhost, cache-bust config.js, gitignore generated config.js
This commit is contained in:
+1
-1
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user