Site ID: bf6e14e2-e3b9-498b-a46b-747fb82ad597
I am experiencing an issue with my website hosted on Netlify, where certain JavaScript files are failing to load. The problem started a few days ago and persists despite local builds working correctly.
Below are the details of the errors encountered:
1764-4b3f4aaf4114ab47.js:1
Failed to load resource: the server responded with a status of 404
yururi/:1 Refused to execute script from ‘https://zendine.co/_next/static/chunks/1764-4b3f4aaf4114ab47.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
7116-e77eacb2d0332f49.js:1
Failed to load resource: the server responded with a status of 404
yururi/:1 Refused to execute script from ‘https://zendine.co/_next/static/chunks/7116-e77eacb2d0332f49.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
webpack-d006d8ea4672f867.js:1
Failed to load resource: the server responded with a status of 404
yururi/:1 Refused to execute script from ‘https://zendine.co/_next/static/chunks/webpack-d006d8ea4672f867.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
page-31e9325dbd67a6cb.js:1
Failed to load resource: the server responded with a status of 404
yururi/:1 Refused to execute script from ‘https://zendine.co/_next/static/chunks/app/[slug]/page-31e9325dbd67a6cb.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.
It appears that parts of the JavaScript bundle have been discarded after the build, causing these 404 errors. Given that everything works fine locally, I suspect the server might be low on memory or there may be an issue with the deployment process.
Could you please investigate and assist in resolving this issue? If there are any specific logs or additional information required from my end, please let me know.
After clearing the site cache and re-running the build, the errors have been resolved, and the website is functioning correctly for 1 or 2 hours. However, this is not the first time we’ve encountered this issue. We had previously cleared the cache a few days ago, which temporarily resolved the problem. This recurrence leads us to believe that there might be some accumulation happening over time, causing parts of the JavaScript bundle to be discarded.
Given this pattern, we suspect that the root cause might be related to the caching mechanism or server memory limitations. We would appreciate it if you could investigate further to identify any underlying issues that might be causing this accumulation and eventual dropping of JavaScript files.
Is there any specific aspect of our build or deployment process that we should review? Are there any logs or diagnostics we can provide to assist in your investigation?
Thank you for your continued support