-
Notifications
You must be signed in to change notification settings - Fork 758
Description
The site works locally but JavaScript does not work not when pushed on a static site: (no animations, console errors).
After
there is: <script src=[/scripts/application.js](https://www.lifeslittlelab.vip/scripts/application.js) integrity defer></script>In other words, there is a reference to application.js without fingerprinting
the application.js file does not exist in public/scripts because there is only the file with fingerprinting
the browser console shows two error lines:
Failed to load resource: the server responded with a status of 404 ()
www.lifeslittlelab.vip/:1 Refused to execute script from 'https://www.lifeslittlelab.vip/scripts/application.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
I am deploying on render.com
render.com runs Hugo automatically when it sees a new commit on github
but even when I run Hugo locally, inside public, I only see the application.css and application.js don't exist as files because there are their versions with fingerprinting. funny thing is that application.css is correctly referenced with fingerprinting but application.js is not referenced with fingerprinting.