workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: `wrangler pages dev .` runs but content not accessible via browser if `wrangler.toml` exists

Open scruffymongrel opened this issue 1 year ago • 1 comments

Which Cloudflare product(s) does this pertain to?

Pages

What version(s) of the tool(s) are you using?

wrangler 3.62.0

What version of Node are you using?

22.1.0

What operating system and version are you using?

Mac Sonoma 14.5

Describe the Bug

Observed behavior

wrangler dev pages . runs but content not accessible via browser when wrangler.toml exists.

Expected behavior

Expect to be able to view content, even when wrangler.toml exists.

Steps to reproduce

  1. pnpm add -D [email protected]
  2. echo hello > index.html
  3. pnpm wrangler pages dev .
  4. Command-click the URL in the console and see "hello" in the default browser
  5. [ctrl]+[c] to end the wrangler process
  6. echo 'name = "foo"' > wrangler.toml
  7. pnpm wrangler pages dev .
  8. Command-click the URL in the console and see that the default browser fails to return the page

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

scruffymongrel avatar Jul 01 '24 15:07 scruffymongrel