Skip to content

Commit

Permalink
Don't pass initialEnv into worker as it prohibits reloading the env
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Aug 7, 2023
1 parent 9fad9dc commit 51a1275
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/next/src/server/lib/server-ipc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const createWorker = async (
type: 'pages' | 'app',
nextConfig: NextConfigComplete
) => {
const { initialEnv } = require('@next/env') as typeof import('@next/env')
const useServerActions = !!nextConfig.experimental.serverActions
const { Worker } =
require('next/dist/compiled/jest-worker') as typeof import('next/dist/compiled/jest-worker')
Expand All @@ -100,7 +99,6 @@ export const createWorker = async (
forkOptions: {
env: {
FORCE_COLOR: '1',
...initialEnv,
// we don't pass down NODE_OPTIONS as it can
// allow more memory usage than expected
NODE_OPTIONS: getNodeOptionsWithoutInspect()
Expand Down
2 changes: 1 addition & 1 deletion test/development/app-hmr/.env.development.local
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MY_DEVICE="mac"
MY_DEVICE="YOYOooooooo"

0 comments on commit 51a1275

Please sign in to comment.