rsnext/test/e2e/app-dir/app-routes
Vũ Văn Dũng 9fd5b96e1f
Make permanentRedirect return 308 in route handlers (#56065)
### Why?

`permanentRedirect` currently still returns a 307 response if called inside a route handler

<img width="465" alt="image" src="https://github.com/vercel/next.js/assets/44609036/e0cddd37-0292-4865-a423-7bf11ad6beae">

This PR tries to fix that.

### How?

Make `handleTemporaryRedirectResponse` (now renamed `handleRedirectResponse`) accept a status value, then `getRedirectStatusCodeFromError` is used to retrieve that status (307 or 308).
2023-09-27 10:28:30 +00:00
..
app Make permanentRedirect return 308 in route handlers (#56065) 2023-09-27 10:28:30 +00:00
handlers Ensure WebSocket is polyfilled for node runtime as well (#48924) 2023-04-28 15:48:14 -05:00
app-custom-route-base-path.test.ts Support basePath with edge runtime for Custom App Routes (#52910) 2023-07-19 23:54:34 +00:00
app-custom-routes.test.ts Make permanentRedirect return 308 in route handlers (#56065) 2023-09-27 10:28:30 +00:00
helpers.ts Loose types of app routes return value (#55849) 2023-09-25 11:34:21 +02:00
next.config.js Loose types of app routes return value (#55849) 2023-09-25 11:34:21 +02:00