rsnext/test
Jiachi Liu f2a3fd9fc3
Handle basePath for redirect() (#54277)
### What & Why
Add base path handling for the url in redirect error if the `basePath` is configured.

This is only break for server rendering case as the `basePath` is missing in the `Location` header. When running `next build`, everything is managed well with app router and base path on client side so it didn't break.

### How

Adding `basePath` if it's presented for `Location` header.
Update the `RenderOpts` type as basePath is already passed down in it, also update them for turbopack entries

Fixes #54163
Closes NEXT-1529
2023-08-20 03:32:52 +00:00
..
.stats-app chore: update to pnpm@8.6.11 (#50923) 2023-08-04 19:40:20 +00:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development add experimental https support to next dev (#54016) 2023-08-19 01:04:06 +00:00
e2e Handle basePath for redirect() (#54277) 2023-08-20 03:32:52 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration add experimental https support to next dev (#54016) 2023-08-19 01:04:06 +00:00
lib fix bfcache restoration behavior (#54198) 2023-08-18 00:05:26 +02:00
production fix process.env not being available in standalone mode (#54203) 2023-08-18 16:04:48 +02:00
unit fix(edge): override init when cloning with NextRequest (#54108) 2023-08-16 18:54:35 +00:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
jest.d.ts refactor smooth scroll bailout logic in app navigations (#53186) 2023-07-27 14:39:51 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.js enable more test cases for next.rs api (#53670) 2023-08-07 15:17:23 +02:00

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