Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dario-piotrowicz/next-on-pages-redirect-issue-repro
https://github.com/dario-piotrowicz/next-on-pages-redirect-issue-repro
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dario-piotrowicz/next-on-pages-redirect-issue-repro
- Owner: dario-piotrowicz
- Created: 2024-03-27T18:00:16.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-27T23:41:28.000Z (8 months ago)
- Last Synced: 2024-04-18T06:19:59.750Z (7 months ago)
- Language: TypeScript
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# next-on-pages redirect issue reproduction
## Steps
- Install the dependencies:
```
npm i
```- run the application using `next dev`:
```
npm run dev
```- in the app click on the `Go to /test` link
- click on the `Back to /` button
- notice that everything works as expected
- run the app in preview mode:
```
npm run preview
```- in the app click on the `Go to /test` link
- click on the `Back to /` button
- notice that that doesn't work (and generates an error in the terminal)
> [!IMPORTANT]
> This is a local-only issue, as it seems that in the deployed application
> things work as intended: https://next-on-pages-redirect-issue-repro.pages.dev/