Directly hitting page url in browser only showing index page while serving "next export" out directory #12734
Unanswered
amalan-shenll
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Describe the bug
In exported nextjs application when trying to copy and paste the url "localhost:3000/about" directly in browser only shows the home page only(index.js content only).
To Reproduce
Steps to reproduce the behavior:
npm init next-app
".npm run dev
" which will run the application in development mode.npm run build
" and then "npm run export
".Note: "
npm run export
" should trigger "next export
".serve -s out
" which will run the in "localhost:5000".Expected behavior
When pasting "localhost:5000/about" should display about page content not home page content.
System information
Beta Was this translation helpful? Give feedback.
All reactions