9c12d85c5d
Migrating from express to nextjs API routes broke one of our APIs because of how `redirect` works in nextjs vs. how it works in express. We need to redirect the user to a confirmation page via GET after making a POST request, which is not possible with `redirect`. HTTP 303 seems to be the way to go in that case and I think it should be mentioned here. ## Documentation / Examples - [ ] Make sure the linting passes by running `yarn lint` |
||
---|---|---|
.. | ||
advanced-features | ||
api-reference | ||
api-routes | ||
basic-features | ||
guides | ||
migrating | ||
routing | ||
authentication.md | ||
deployment.md | ||
faq.md | ||
getting-started.md | ||
going-to-production.md | ||
manifest.json | ||
middleware.md | ||
testing.md | ||
upgrading.md |