Connected to Supabase

X-Lovable-Edit-ID: edt-170c9105-7819-4527-bfea-a33e0a4ce2e6
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-14 03:31:36 +00:00
co-authored by renee-png
+14 -7
View File
@@ -1,9 +1,16 @@
// @lovable.dev/vite-tanstack-config already includes the following — do NOT add them manually
// or the app will break with duplicate plugins:
// - tanstackStart, viteReact, tailwindcss, tsConfigPaths, cloudflare (build-only),
// componentTagger (dev-only), VITE_* env injection, @ path alias, React/TanStack dedupe,
// error logger plugins, and sandbox detection (port/host/strictPort).
// You can pass additional config via defineConfig({ vite: { ... } }) if needed.
import { defineConfig } from "@lovable.dev/vite-tanstack-config";
export default defineConfig();
// Override Supabase target to point at the user's external project.
const EXTERNAL_SUPABASE_URL = "https://agoleqtakruggsbqpnjx.supabase.co";
const EXTERNAL_SUPABASE_ANON_KEY =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFnb2xlcXRha3J1Z2dzYnFwbmp4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Nzg3MDc5MDgsImV4cCI6MjA5NDI4MzkwOH0.4oqluTuHuTkoRfgb91CzuUfdey285c6hqniLsAOw4Jc";
export default defineConfig({
vite: {
define: {
"import.meta.env.VITE_SUPABASE_URL": JSON.stringify(EXTERNAL_SUPABASE_URL),
"import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY": JSON.stringify(EXTERNAL_SUPABASE_ANON_KEY),
"import.meta.env.VITE_SUPABASE_ANON_KEY": JSON.stringify(EXTERNAL_SUPABASE_ANON_KEY),
},
},
});