-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Website in dev working perfectly, but when running npm build + npm start (in production) doesn't work. #11523
Comments
In my tests i had problem with
Works!! |
Did you test going into the Login or Sign Up routes? It still gave me a 404 when I tried, after npm installing strip-ansi. By the way, what is strip-ansi used for, i wasn't using it in my project. |
Sounds like a duplicate of vercel/next-plugins#282 I'd recommend using the built-in CSS support which fixes this issue. |
Hey man, it works! |
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. |
Bug report
Describe the bug
When developing, running npm run dev (next dev), the website works perfectly and the routing to other pages works as intended.
But, when running the project in production (next build + next start), the routing doesn't work, for some reason.
I'm using, for routing
<Link href="/users/signup"/>
, as intended in the documentation.The routing isn't dynamic
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
npm install
npm run dev
, to see it working fine (routes to /users/login and /users/signup)4 Then run
npm run build
andnpm run start
, check the routes, they'll not be working (or at least they didn't work for me);Expected behavior
Routing in production to work the same as it does in dev mode.
System information
The text was updated successfully, but these errors were encountered: