Skip to content

Commit 9533c08

Browse files
committed
Logs VITE_NODE_ENV for environment debugging
Provides clarity when diagnosing environment configurations by displaying both runtime-configured and import-based values.
1 parent bde0211 commit 9533c08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/src/lib/env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export const ENV_URLS = {
8383
console.log('🔍 Environment Debug:', {
8484
backendBase,
8585
loginBase,
86+
'runtimeConfig.VITE_NODE_ENV': (window as any)?.runtimeConfig?.VITE_NODE_ENV || 'NOT SET',
87+
'import.meta.env.VITE_NODE_ENV': import.meta.env.VITE_NODE_ENV || 'NOT SET',
8688
'import.meta.env.VITE_BACKEND_BASE_URL': import.meta.env.VITE_BACKEND_BASE_URL,
8789
'import.meta.env.VITE_LOGIN_BASE_URL': import.meta.env.VITE_LOGIN_BASE_URL,
8890
'import.meta.env.VITE_OAUTH_WEB_CLIENT_ID': import.meta.env.VITE_OAUTH_WEB_CLIENT_ID ? 'SET' : 'NOT SET',

0 commit comments

Comments
 (0)