Skip to content

Commit

Permalink
Warn about browser rendering when running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgek committed Dec 12, 2024
1 parent 4fe93de commit 9f810da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-suns-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Add warning about the browser rendering not available on local
4 changes: 4 additions & 0 deletions packages/wrangler/src/dev/miniflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,10 @@ export async function buildMiniflareOptions(
}
}

if (config.bindings.browser) {
logger.warn("Browser render is not supported locally use `--remote`");
}

const upstream =
typeof config.localUpstream === "string"
? `${config.upstreamProtocol}://${config.localUpstream}`
Expand Down

0 comments on commit 9f810da

Please sign in to comment.