Skip to content

Commit e2a072e

Browse files
add hack to get standard build to work
1 parent 0e08459 commit e2a072e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cloudflare/src/api/get-cloudflare-context.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ async function getCloudflareContextInNextDev<
7272
// Note: we need to add the webpackIgnore comment to the dynamic import because
7373
// the next dev server transpiled modules on the fly but we don't want it to try
7474
// to also transpile the wrangler code
75-
const { getPlatformProxy } = await import(/* webpackIgnore: true */ "wrangler");
75+
const { getPlatformProxy } = await import(
76+
/* webpackIgnore: true */ `${"__wrangler".replaceAll("_", "")}`
77+
);
7678
const { env, cf, ctx } = await getPlatformProxy();
7779
global[cloudflareContextInNextDevSymbol] = {
7880
env,

0 commit comments

Comments
 (0)