In my recent deployment on Netlify, my icon assets are missing after the deployment. After comparing with my local version and GitHub Pages version, I found the issue only happens on Netlify.
The issue comes from Asset Optimization. When this feature is enabled in the deployment settings, a file named framework-caa722f8.js will be redirected to CloudFront, and caused a 404 error.
As the setting will immediately affect the production environment, I have disabled it again, but surely the issue is coming from the asset optimization. The GitHub discussion link included at the top of the thread has given sufficient proof.
Just like I expected, the error has nothing to do with Netlify. The issue is happening because your script app-843bbcab.js requests framework-caa722f8.js from the origin that served app-843bbcab.js.
Since app-843bbcab.js was served by example.server.com, framework-caa722f8.js is also requested from example.server.com. However, the file doesn’t exist there. Netlify’s asset processing can dynamically host files anywhere, so this is expected to break.
In any case, since you’re already using Vite, I don’t see why you need asset processing. Vite should already be able to bundle the files for you.