rsnext/packages
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
..
create-next-app Add the default import alias to create-next-app prompt for clarity (#55896) 2023-09-26 22:58:46 +00:00
eslint-config-next v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
eslint-plugin-next v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
font v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next Make permanentRedirect return 308 in route handlers (#56065) 2023-09-27 10:28:30 +00:00
next-bundle-analyzer v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-codemod v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-env v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-mdx v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-plugin-storybook v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-polyfill-module v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-polyfill-nomodule v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
next-swc fix reporting of illegal segments when directory only contains irrelevant files (#56076) 2023-09-27 10:04:10 +00:00
react-dev-overlay v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
react-refresh-utils v13.5.4-canary.1 2023-09-26 13:31:19 +00:00
third-parties v13.5.4-canary.1 2023-09-26 13:31:19 +00:00