Skip to content

Commit d931317

Browse files
committed
fix(vite.config): update process.env assignment to use clientEnv for improved environment handling
1 parent 50a5c7f commit d931317

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/console-v5/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// <reference types='vitest' />
2+
import { execSync } from 'child_process'
23
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin'
34
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'
45
import { tanstackRouter } from '@tanstack/router-plugin/vite'
@@ -56,7 +57,7 @@ export default defineConfig(({ mode }) => {
5657
host: 'localhost',
5758
},
5859
define: {
59-
'process.env': JSON.stringify(env),
60+
'process.env': JSON.stringify(clientEnv),
6061
},
6162
plugins: [
6263
tanstackRouter({

0 commit comments

Comments
 (0)