When the store is in developer mode everything works as it should. All the js files are properly linked in the network tab. It gets the file from: base_url/static/version1662993482/frontend/Smartwave/porto_child/nl_NL/jquery.js
When the store gets set to production mode the js files all get a 404. The path it tries to get it from is now: base_url/jquery.js The file is still at base_url/static/version1662993482/frontend/Smartwave/porto_child/nl_NL/jquery.js so why does magento try to get it from /jquery.js
Why is it not getting the file from the correct path in production mode?
I’ve tried deploying static content. Flushing caches. Switching themes. Everything I could think of.
Any help is appreciated.