-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
API rewrites not working #848
Comments
Yeah, unfortunately this is a cross-lambda rewrite, so this won't work since the default Lambda (the You could try doing an external rewrite as a workaround (point to |
Thanks @dphang !! Are you intend to add this in the future? |
Not sure as it will involve some fundamental changes of the architecture, @danielcondemarin any thoughts on this? |
I'd be inclined to say no given the considerable changes this would involve for arguably little benefit. |
Ok, for now it works with an external rewrite. Thanks!! |
Describe the bug
Hi, I'm trying to implement api rewrites do my sitemap, but is not working.
Actual behavior
I have a rewrite config
{ source: '/sitemap.xml', destination: '/api/sitemap' },
./api/sitemap
works but/sitemap.xml
notExpected behavior
/sitemap.xml
workingScreenshots/Code/Logs
routes-manifest.json
insideapi-lambda
Versions
Additional context
I tried this but didn't work
The text was updated successfully, but these errors were encountered: