nitro icon indicating copy to clipboard operation
nitro copied to clipboard

feat: allow setting `rewrite` option for devProxy

Open gliheng opened this issue 1 year ago โ€ข 5 comments

๐Ÿ”— 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.

gliheng avatar Nov 08 '23 05:11 gliheng