rsnext/test
Zack Tanner 77f8889b7c
use 303 status code for redirects in fetch actions (#59017)
### What?
A `redirect` that occurs during a fetch action will get a status code of
200, while the redirection logic is handled client-side.

### Why?
In this scenario, the redirect is handled by the client router, so no
`Location` is set on the action response. However for debugging /
logging purposes, it'd be useful to still return the same status code
used in other cases (see #58885)

### How?
Rather than selectively setting the status to 303 in the non-fetch
action case, this always applies it.

Closes NEXT-1745
2023-11-29 11:45:06 -08:00
..
.stats-app tweak stats action to pull in runtime sizes (#58005) 2023-11-03 23:39:37 +00:00
development make tests more stable (#58765) 2023-11-23 13:48:08 +01:00
e2e use 303 status code for redirects in fetch actions (#59017) 2023-11-29 11:45:06 -08:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration fix(test): don't use latest sharp (#59074) 2023-11-29 18:13:58 +01:00
lib Ensure stale build fetch data is not unexpectedly used (#59076) 2023-11-29 10:03:25 -08:00
production Ensure stale build fetch data is not unexpectedly used (#59076) 2023-11-29 10:03:25 -08:00
unit Add nodejs version check (#58958) 2023-11-27 16:53:26 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
build-turbopack-tests-manifest.js Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
get-test-filter.js Enable PPR tests for test suites (#59030) 2023-11-29 03:22:45 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json Enable PPR tests for test suites (#59030) 2023-11-29 03:22:45 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.json build(cargo): bump up turbopack (#59032) 2023-11-28 20:42:26 +00:00

See Testing for more information on how you can run/write/debug tests for Next.js.