Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
dd33e72635
commit
38cc965edc
+14
-7
@@ -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),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user