Skip to content

Commit

Permalink
fix node-environment loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Sep 8, 2023
1 parent 5e43108 commit f934cc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/next/src/server/lib/router-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import type {
WorkerUpgradeHandler,
} from './setup-server-worker'

// This is required before other imports to ensure the require hook is setup.
import '../node-polyfill-fetch'
import '../node-environment'
import '../require-hook'

import url from 'url'
import path from 'path'
import loadConfig from '../config'
Expand Down

0 comments on commit f934cc4

Please sign in to comment.