Skip to content

Commit d3c6533

Browse files
chore: update old code comment (#423)
1 parent fdc58c1 commit d3c6533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cloudflare/src/cli/build/bundle-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export async function bundleServer(buildOpts: BuildOptions): Promise<void> {
128128
// Note: we need the __non_webpack_require__ variable declared as it is used by next-server:
129129
// https://github.com/vercel/next.js/blob/be0c3283/packages/next/src/server/next-server.ts#L116-L119
130130
__non_webpack_require__: "require",
131-
// Ask mhart if he can explain why the `define`s below are necessary
131+
// We make sure that environment variables that Next.js expects are properly defined
132132
"process.env.NEXT_RUNTIME": '"nodejs"',
133133
"process.env.NODE_ENV": '"production"',
134134
"process.env.NEXT_MINIMAL": "true",

0 commit comments

Comments
 (0)