Deployment of a Next.js application in Arsys + Plesk #82270
Replies: 1 comment
-
Hi @hugocruzlfc, Thanks for sharing your setup and detailed error. The ChunkLoadError you’re seeing (Loading chunk 974 failed) usually means that the browser can’t find or load a JavaScript chunk file generated by Next.js during client-side navigation. This often happens when the deployed static files or build output are incomplete, missing, or served from an incorrect path. Here are some tips and best practices for deploying a Next.js standalone build on Arsys + Plesk:
Your step cp -r public .next/standalone/ && cp -r .next/static .next/standalone/.next/ is on the right track, but confirm these files are fully present on the server and accessible. The _next/static folder should be served statically by your web server (Nginx or Plesk proxy). Make sure the paths match the URLs the browser requests.
Missing or incorrect base path settings cause chunk loading failures because URLs to JS files are wrong.
Configure proper cache headers for these static assets. Confirm there are no URL rewrites or redirects interfering with static files.
Confirm those files exist on the server at the expected paths. Restart your Node.js server after deploying new files to ensure changes take effect. Test with a minimal Next.js app deployed the same way to isolate configuration issues. Summary Check your next.config.js for basePath or assetPrefix settings. Verify your web server serves static assets correctly on /_next/static. Consider downgrading Node.js if needed. Use browser dev tools to debug missing chunk URLs. If you want, I can help you review your next.config.js or your server setup configs. Good luck with your deployment! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Context
I am trying to deploy an application built with Next.js in Arys + Plesk. However, I have not found clear documentation or specific guides on how to do this deployment effectively. I would like to open a discussion to gather best practices, recommendations or possible configurations to accomplish this.
Problem details
When I enter the application web site it loads the login and all the serever side pages perfectly. When I login or register, it goes fine, but I get the following error:
webpack-61986b0a62ba55ed.js:1 Uncaught ChunkLoadError: Loading chunk 974 failed.
(error: https://www.evaluacioncontenidos.com/_next/static/chunks/app/page-535b35af1b4c2c27.js)
at r.f.j (webpack-61986b0a62ba55ed.js:1:2812)
at webpack-61986b0a62ba55ed.js:1:1211
at Array.reduce ()
at r.e (webpack-61986b0a62ba55ed.js:1:1190)
at i (964-02efbd2195ef91bd.js:1:135730)
at 964-02efbd2195ef91bd.js:1:149831
at t (964-02efbd2195ef91bd.js:1:151289)
I don't know if I'm missing files to copy, or some Nginix configuration or something else.
Additional information
Example
https://www.evaluacioncontenidos.com/
Beta Was this translation helpful? Give feedback.
All reactions