nitro
nitro copied to clipboard
feat: allow setting `rewrite` option for devProxy
๐ Linked issue
https://github.com/unjs/nitro/issues/1892
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme, or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [x] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
๐ Description
This PR adds a path rewrite option to devProxy config. This is useful in case that user wants to change request path, before the request is sent to upstream server.
Resolves #1892
๐ Checklist
- [x] I have linked an issue or discussion.
- [x] I have updated the documentation accordingly.