You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
will populate the queryString parameter msg in netlify dev, however they will not in production. While I prefer the netlify dev behavior, I was advised to open a bug here to change it for consistency.
To Reproduce
Set a redirect that uses parameter matching and rewrites them into the target URL. The value will be copied to the target query parameter.
Configuration
N/A
Expected behavior
Nothing should happen (value in target URL should be ignored)
Additional context
Of course, I would vastly prefer that one of these two things happened:
The current netlify dev behavior worked in production
(even better) any redirects containing path parameters populated the pathParameters property of the APIGatewayEvent as they do on AWS API Gateway
However, I was advised by the platform team that this probably won't happen, so I will need to add the path expressions to each function, which is brittle and not DRY, but nonetheless the CLI behavior should match production.
My guess is that whatever netlify dev uses as the proxy server does this automagically.
The text was updated successfully, but these errors were encountered:
Thanks for raising this bug @parkan. This just bit us when we deployed a new function to production. Very unexpected that the dev behaviour doesn't match production (and of course, trying to debug this was hard!).
Describe the bug
Referencing this netlify community post
Redirects of the form:
will populate the queryString parameter
msg
in netlify dev, however they will not in production. While I prefer the netlify dev behavior, I was advised to open a bug here to change it for consistency.To Reproduce
Set a redirect that uses parameter matching and rewrites them into the target URL. The value will be copied to the target query parameter.
Configuration
N/A
Expected behavior
Nothing should happen (value in target URL should be ignored)
Additional context
Of course, I would vastly prefer that one of these two things happened:
pathParameters
property of the APIGatewayEvent as they do on AWS API GatewayHowever, I was advised by the platform team that this probably won't happen, so I will need to add the path expressions to each function, which is brittle and not DRY, but nonetheless the CLI behavior should match production.
My guess is that whatever netlify dev uses as the proxy server does this automagically.
The text was updated successfully, but these errors were encountered: