We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Before filing this issue, please ensure you're using the latest CLI by running swa --version and comparing to the latest version on npm.
swa --version
Are you accessing the CLI from the default port :4280 ?
:4280
--port
Make sure you are accessing the URL printed in the console when running swa start!
swa start
ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly
swa
--verbose=silly
Describe the bug When defining a route rewrite in the staticwebapp.config.json like this:
staticwebapp.config.json
{ "routes": [ { "route": "/something", "rewrite": "/api/something" } }
The query parameters are not passed to the rewritten route.
To Reproduce Steps to reproduce the behavior:
something
npx swa start public --api-location http://localhost:7071
http://localhost:4280/something?key=value
Expected behavior The query parameters from the initial request are available in the API.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Before filing this issue, please ensure you're using the latest CLI by running
swa --version
and comparing to the latest version on npm.Are you accessing the CLI from the default port
:4280
?--port
) and accessing the CLI from that port:4280
ℹ️ NOTE: Make sure to enable debug logs when running any
swa
commands using--verbose=silly
Describe the bug
When defining a route rewrite in the
staticwebapp.config.json
like this:The query parameters are not passed to the rewritten route.
To Reproduce
Steps to reproduce the behavior:
something
log the query parameters from the requestnpx swa start public --api-location http://localhost:7071
http://localhost:4280/something?key=value
Expected behavior
The query parameters from the initial request are available in the API.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: