Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Proxying wrangler pages dev with <command> not working on Windows #3054

Closed
stenet opened this issue Apr 17, 2023 · 3 comments
Closed
Assignees
Labels
bug Something that isn't working pages Relating to Pages pages-dev Relating to `pages dev` command

Comments

@stenet
Copy link

stenet commented Apr 17, 2023

Which Cloudflare product(s) does this pertain to?

Pages

What version of Wrangler are you using?

2.15.0

What operating system are you using?

Windows

Describe the Bug

I have a simple Nuxt app and want to proxy the traffic through wrangler to use _worker.js (on Windows).

When executing npx wrangler pages dev -- nuxt dev the result is:

image

I also tried using npx wrangler pages dev --proxy 3000 -- nuxt dev. That didn't work either.

This is the link to the repo: https://github.com/stenet/nuxt-cf-pages. You can use npm run dev to execute the above statement.

When cloning this repo an a Mac or Linux everything works as excepted.

@stenet stenet added the bug Something that isn't working label Apr 17, 2023
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Apr 17, 2023
@JacobMGEvans JacobMGEvans added the pages Relating to Pages label Apr 17, 2023
@CarmenPopoviciu
Copy link
Contributor

thank you for reporting this and thank you SO much for the repro repository. We'll have a look at it and come back to you once we've figured it out

@Sammy-T
Copy link

Sammy-T commented Oct 9, 2023

@stenet What error do you receive when you specify the proxy?
I'm just wondering if this is related to #2244

@CarmenPopoviciu
Copy link
Contributor

hi @stenet 👋
my most sincere apologies for taking literally one year 😭 to get back to you on this </3. Will go in a corner and cry once I finish typing this reply 😅

Lots have changed since you first reported this issue, and unfortunately, one of those is things is that Pages support for the proxy command has been deprecated, and we no longer recommend folks to use it.

For now, the recommended way is to build your application to a directory and run the wrangler pages dev <directory> command instead. This will result in a more faithful emulation of production behavior than via <command>.

We are aware this is not most ideal, especially for HMR. We will be discussing this internally as part of https://github.com/cloudflare/workers-sdk/milestone/10, but what comes out of those discussions remains to be seen.

For now, closing as won't fix due to API being deprecated

<3

@CarmenPopoviciu CarmenPopoviciu added the pages-dev Relating to `pages dev` command label Apr 25, 2024
@CarmenPopoviciu CarmenPopoviciu self-assigned this Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working pages Relating to Pages pages-dev Relating to `pages dev` command
Projects
None yet
Development

No branches or pull requests

4 participants