-
-
Notifications
You must be signed in to change notification settings - Fork 463
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: