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 a107abb commit a9f7ec4Copy full SHA for a9f7ec4
packages/cloudflare/src/cli/templates/worker.ts
@@ -21,7 +21,7 @@ const cloudflareContextALS = new AsyncLocalStorage<CloudflareContext>();
21
}
22
);
23
24
-async function applyProjectEnvVars(mode = "production") {
+async function applyProjectEnvVars(mode: string) {
25
if (process.env.__OPENNEXT_PROCESSED_ENV === "1") return;
26
27
// @ts-expect-error: resolved by wrangler build
@@ -49,7 +49,7 @@ export default {
49
},
50
});
51
52
- await applyProjectEnvVars(env.NEXTJS_ENV ?? globalThis.process.env.NODE_ENV);
+ await applyProjectEnvVars(env.NEXTJS_ENV ?? "production");
53
54
// The Middleware handler can return either a `Response` or a `Request`:
55
// - `Response`s should be returned early
0 commit comments