question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSG dev server 404 after refresh

See original GitHub issue

Bug report

Describe the bug

when dev, always response 404-page aftr refresh page. 9.2.3 canary is ok

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

https://github.com/WeFoxTech/wefox-site

  1. clone
  2. y boot
  3. y dev
  4. open a page, not root index, eg /en/about

Expected behavior

image

Screenshots

If applicable, add screenshots to help explain your problem. image

System information

  • OS: [macOS 10.14.6]
  • Browser (if applies) [chrome, safari,ff]
  • Version of Next.js: [ 9.3.0,9.3.1]

Additional context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
chaddjohnsoncommented, Apr 12, 2020

I’m seeing this same error with 9.3.4.

When I click a link to go to, say, /products/, and then I refresh the browser, I get a 404. This is a very annoying problem during development.

0reactions
balazsorban44commented, Jan 29, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSG dev server 404 after refresh · Issue #11253 · vercel/next.js
When I click a link to go to, say, /products/, and then I refresh the browser, I get a 404. This is a...
Read more >
Next.js Error Getting 404 When Fetching JS Resources After ...
My answer for all other frustrated dev out there, check your 'Link' and your 'router.push()' especially if you are using a custom router....
Read more >
7.1 Fix Cannot Get/URL on Refresh | React Reach Router
Handing 404 Pages | Fix Cannot Get/URL on Page Refresh | Error | React Router | Reach Router | Handing 404 Pages |...
Read more >
How to fix #Angular 6 #refresh page #404 error ... - YouTube
How to fix #Angular 6 # refresh page # 404 error. Angular stops working when refreshing ? ; How to fix #Angular ;...
Read more >
Advanced Features: Debugging - Next.js
Debugging. This documentation explains how you can debug your Next.js frontend and backend code with full source maps support using either the VS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found