Skip to content

Commit

Permalink
feat(app-shell, app-shell-odd): filter out unused env vars (#16741) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shlokamin authored Nov 8, 2024
1 parent 2fda991 commit 839da56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app-shell-odd/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export default defineConfig(
},
},
define: {
'process.env': process.env,
'process.env': {
NODE_ENV: process.env.NODE_ENV,
OPENTRONS_PROJECT: process.env.OPENTRONS_PROJECT,
},
global: 'globalThis',
_PKG_VERSION_: JSON.stringify(version),
_PKG_PRODUCT_NAME_: JSON.stringify(pkg.productName),
Expand Down
5 changes: 4 additions & 1 deletion app-shell/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export default defineConfig(
exclude: ['node_modules'],
},
define: {
'process.env': process.env,
'process.env': {
NODE_ENV: process.env.NODE_ENV,
OPENTRONS_PROJECT: process.env.OPENTRONS_PROJECT,
},
global: 'globalThis',
_PKG_VERSION_: JSON.stringify(version),
_PKG_PRODUCT_NAME_: JSON.stringify(pkg.productName),
Expand Down

0 comments on commit 839da56

Please sign in to comment.