rsnext/packages/next
Michiel Van Gendt d22ecd97f4
Include message body in redirect responses (#25257)
### Description
The redirect responses from the redirect function do not contain a message body. This is in conflict with the RFCs below and causes Traefik (a reverse proxy) to invalidate the responses. In this pull request, I add a response body to the redirect responses.

### References
- https://datatracker.ietf.org/doc/html/rfc7230#section-3.3
> All 1xx (Informational), 204 (No Content), and 304 (Not Modified) responses must not include a message-body. All other responses do include a message-body, although the body may be of zero length.

- https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.3
> The server's response payload usually contains a short hypertext note with a hyperlink to the different URI(s).

- traefik/traefik#4456
- https://github.com/auth0/nextjs-auth0/pull/399
2021-07-09 16:32:48 +00:00
..
bin Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
build Add performance tracing for next-image-loader (#27043) 2021-07-09 17:30:16 +02:00
bundles update webpack to 5.43.0 (#26979) 2021-07-07 12:00:41 +02:00
cli Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
client Rename next/image dangerously-unoptimized to custom and warn when applicable (#26998) 2021-07-08 19:35:19 +00:00
compiled update webpack to 5.43.0 (#26979) 2021-07-07 12:00:41 +02:00
export Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
image-types Update to only add image import types when enabled (#26485) 2021-06-22 11:56:21 -05:00
lib Add newline to the end of next-env.d.ts (#27028) 2021-07-08 21:27:52 -05:00
pages Rename next/script interface Props to ScriptProps (#26990) 2021-07-07 16:35:50 +00:00
server Include message body in redirect responses (#25257) 2021-07-09 16:32:48 +00:00
shared/lib Fix hash change events not firing with i18n (#26994) 2021-07-07 20:54:56 +00:00
telemetry Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
types Provide Next.js postcss version to cssnano-simple (#26952) 2021-07-08 13:10:43 +02:00
amp.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
amp.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
app.d.ts
app.js
babel.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
babel.js
client.d.ts
client.js
config.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
config.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
constants.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
constants.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
data.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
data.js
data.sqlite Fix export worker threads options (#25063) 2021-05-14 12:50:29 +02:00
document.d.ts
document.js
dynamic.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
dynamic.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
error.d.ts
error.js
head.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
head.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
image.d.ts Image component foundation (#17343) 2020-10-14 11:57:10 +02:00
image.js Image component foundation (#17343) 2020-10-14 11:57:10 +02:00
license.md Update license year for all packages 2021-01-11 11:12:19 +01:00
link.d.ts
link.js
package.json v11.0.2-canary.9 2021-07-08 20:13:53 -05:00
README.md docs(readme.md): add good first issue section to readme (#25085) 2021-05-18 16:10:01 -05:00
router.d.ts
router.js
script.d.ts Remove experimental tag from Script component (#25435) 2021-06-03 13:56:50 +02:00
script.js Remove experimental tag from Script component (#25435) 2021-06-03 13:56:50 +02:00
taskfile-babel.js fix: detect loop in client error page (#26567) 2021-07-01 13:54:54 +02:00
taskfile-ncc.js Add nccing AMP optimizer (#21980) 2021-02-11 09:55:56 +00:00
taskfile.js Move next-server directory files to server directory (#26756) 2021-06-30 13:44:40 +02:00
tsconfig.json Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Good First Issues

We have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Authors