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

devProxy need rewrite option to rewrite request path #1892

Open
1 task done
gliheng opened this issue Nov 8, 2023 · 0 comments · May be fixed by #1893
Open
1 task done

devProxy need rewrite option to rewrite request path #1892

gliheng opened this issue Nov 8, 2023 · 0 comments · May be fixed by #1893

Comments

@gliheng
Copy link

gliheng commented Nov 8, 2023

Describe the feature

In my case, I'm putting all server requests under /api then I rewrite it and remove api path and dispatch the request to the actual server.

Here's how vite is does it and we need something similar
https://github.com/vitejs/vite/blob/987b8fadc176434b1b18c5dcf15a8cefe434e500/packages/vite/src/node/server/middlewares/proxy.ts#L130

Additional information

  • Would you be willing to help implement this feature?
@gliheng gliheng linked a pull request Nov 8, 2023 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant