diff --git a/app-shell-odd/vite.config.mts b/app-shell-odd/vite.config.mts index 7848c92bd8d..ef20c33b0ed 100644 --- a/app-shell-odd/vite.config.mts +++ b/app-shell-odd/vite.config.mts @@ -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), diff --git a/app-shell/vite.config.mts b/app-shell/vite.config.mts index 63862287fc1..8e2883cca0d 100644 --- a/app-shell/vite.config.mts +++ b/app-shell/vite.config.mts @@ -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),