-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
'404 Not Found' for all resources #56215
Comments
This is happening for us in production when leaving the landing page for the following resource: _next/static/chunks/webpack-8147f10d25df47dc.js |
This seems related to #47799 which is a problem with the mime types of static files in standalone builds for some reason. |
Having the same issue as described here: #49283 (comment) |
Hi everyone— This issue has become stale but the behavior is expected—the static files are The minimal server does not copy the public or .next/static folders by default as these should ideally be handled by a CDN instead, although these folders can be copied to the standalone/public and standalone/.next/static folders manually, after which server.js file will serve these automatically. To copy these and then start this local minimal server locally, you can do something like this:
I have also just created a PR to update our documentation with this → #72432. I will closing this PR since this is a non-issue! |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/shortlink-org/shortlink/tree/main/ui/nx-monorepo
To Reproduce
Current vs. Expected behavior
Success starting my project
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Additional context
The application is successfully built, but in development mode for some reason it cannot find the built files
The text was updated successfully, but these errors were encountered: