mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
debug: enumerate VITE_/RUN_ env var names in build log
This commit is contained in:
@@ -128,6 +128,9 @@ export default defineConfig(async ({ mode }) => {
|
|||||||
// TEMP DEBUG — surface build-time env values so we can confirm what the
|
// TEMP DEBUG — surface build-time env values so we can confirm what the
|
||||||
// build host (Cloudflare / CI) is actually passing through. Safe to remove
|
// build host (Cloudflare / CI) is actually passing through. Safe to remove
|
||||||
// once we've stopped chasing env-var routing bugs.
|
// once we've stopped chasing env-var routing bugs.
|
||||||
|
const viteAndRunNames = Object.keys(process.env)
|
||||||
|
.filter((k) => k.startsWith("VITE_") || k.startsWith("RUN_"))
|
||||||
|
.sort();
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(
|
console.log(
|
||||||
"[vite-config-debug]",
|
"[vite-config-debug]",
|
||||||
@@ -141,6 +144,11 @@ export default defineConfig(async ({ mode }) => {
|
|||||||
VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY: env.VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY
|
VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY: env.VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY
|
||||||
? "(set)"
|
? "(set)"
|
||||||
: "(unset)",
|
: "(unset)",
|
||||||
|
// Comprehensive list of every VITE_/RUN_ name actually present in
|
||||||
|
// process.env. Names only — values are deliberately omitted so this
|
||||||
|
// remains safe to print in the build log even if Cloudflare ever
|
||||||
|
// exposes secrets via this prefix in future.
|
||||||
|
viteAndRunEnvVarNames: viteAndRunNames,
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
2,
|
2,
|
||||||
|
|||||||
Reference in New Issue
Block a user