https://github.com/jpb06/next-repro-404-index.json
Issue with full roundtrip when navigating to / while using base path and middlewares
https://github.com/jpb06/next-repro-404-index.json
basepath next-js pages-router-nextjs reproduction
Last synced: 5 months ago
JSON representation
Issue with full roundtrip when navigating to / while using base path and middlewares
- Host: GitHub
- URL: https://github.com/jpb06/next-repro-404-index.json
- Owner: jpb06
- License: mit
- Created: 2024-05-29T14:01:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T15:24:20.000Z (about 2 years ago)
- Last Synced: 2025-09-09T16:59:29.000Z (11 months ago)
- Topics: basepath, next-js, pages-router-nextjs, reproduction
- Language: JavaScript
- Homepage: https://next-repro-404-index-json.vercel.app/app
- Size: 16.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nextjs repro - basePath + middleware + pages routes = full roundtrip
Hello.
Here is a repro about an issue we are experiencing with pages router. Conditions are the following:
- Using a basePath.
- Using middleware.
- Using pages router.
- Index page using `getServerSideProps`.
## Symptoms

- Client navigation from `/` -> `/yolo` = OK.
- Client navigation from `/yolo` -> `/` = Full roundtrip. We appear to have a 404 on getting `index.json`, as shown in the recording, even though the file exists.