Files
supabase/apps
Alaister Young bca8a7a0cf chore(studio): inline NEXT_PUBLIC_* env vars in the Vite build
Use vite's loadEnv to read the .env hierarchy + process.env, filter to
NEXT_PUBLIC_*, and pass them to define so process.env.NEXT_PUBLIC_X is
replaced with its value at build time (matching Next.js behaviour).

Without this, every process.env.NEXT_PUBLIC_* access in the browser
bundle would be undefined since process isn't defined in browsers.
2026-04-21 16:15:11 +08:00
..