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 0e08459 commit e2a072eCopy full SHA for e2a072e
packages/cloudflare/src/api/get-cloudflare-context.ts
@@ -72,7 +72,9 @@ async function getCloudflareContextInNextDev<
72
// Note: we need to add the webpackIgnore comment to the dynamic import because
73
// the next dev server transpiled modules on the fly but we don't want it to try
74
// to also transpile the wrangler code
75
- const { getPlatformProxy } = await import(/* webpackIgnore: true */ "wrangler");
+ const { getPlatformProxy } = await import(
76
+ /* webpackIgnore: true */ `${"__wrangler".replaceAll("_", "")}`
77
+ );
78
const { env, cf, ctx } = await getPlatformProxy();
79
global[cloudflareContextInNextDevSymbol] = {
80
env,
0 commit comments