We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc58c1 commit d3c6533Copy full SHA for d3c6533
packages/cloudflare/src/cli/build/bundle-server.ts
@@ -128,7 +128,7 @@ export async function bundleServer(buildOpts: BuildOptions): Promise<void> {
128
// Note: we need the __non_webpack_require__ variable declared as it is used by next-server:
129
// https://github.com/vercel/next.js/blob/be0c3283/packages/next/src/server/next-server.ts#L116-L119
130
__non_webpack_require__: "require",
131
- // Ask mhart if he can explain why the `define`s below are necessary
+ // We make sure that environment variables that Next.js expects are properly defined
132
"process.env.NEXT_RUNTIME": '"nodejs"',
133
"process.env.NODE_ENV": '"production"',
134
"process.env.NEXT_MINIMAL": "true",
0 commit comments