I have upgraded Magento to 2.4.5 and deployed it to a new server.
When i browse site JS file is not loading, but css file is loading correctly
JS path is like this - https://test.com/jquery.js
CSS path is like this - https://test.com/static/version1687893220/_cache/merged/c2f02f3311375ce676a7b8fc512d783c.min.css
Also check with disable merge JS file but still same issue
Not sure why JS path is coming without static path
[2023-06-27T20:20:33.121142+00:00] report.CRITICAL: Invalid template file: '/var/www/test.com/var/view_preprocessed/pub/static/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js'