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 6f99005 commit d0f4af6Copy full SHA for d0f4af6
packages/cloudflare/src/cli/templates/worker.ts
@@ -25,11 +25,11 @@ async function applyProjectEnvVars(mode = "production") {
25
if (process.env.__OPENNEXT_PROCESSED_ENV === "1") return;
26
27
// @ts-expect-error: resolved by wrangler build
28
- const secrets = await import("./.env.mjs");
+ const nextEnvVars = await import("./.env.mjs");
29
30
- if (secrets[mode]) {
31
- for (const key in secrets[mode]) {
32
- process.env[key] = secrets[key];
+ if (nextEnvVars[mode]) {
+ for (const key in nextEnvVars[mode]) {
+ process.env[key] = nextEnvVars[key];
33
}
34
35
0 commit comments