Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/cloudflare/src/cli/utils/run-wrangler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export function runWrangler(options: BuildOptions, args: string[], wranglerOpts:
env: {
...process.env,
...(wranglerOpts.logging === "error" ? { WRANGLER_LOG: "error" } : undefined),
// `.env` files are handled by the adapter.
// Wrangler would load `.env.<wrangler env>` while we should load `.env.<process.env.NEXTJS_ENV>`
// See https://opennext.js.org/cloudflare/howtos/env-vars
CLOUDFLARE_LOAD_DEV_VARS_FROM_DOT_ENV: "false",
},
}
);
Expand Down