we have a site that was running fine, we just move site to new instance and got an error. All js file's map urls, that we define in require-config.js file not loading on frontend.
Like, we define -
var config = {
map: {
'*': {
customjs : 'Magento_Theme/js/custom'
}
}
};
on frontend,site making url - http://localhost/Mysite/pub/static/frontend/Magento/Commerce/en_US/customjs.js
And giving error
File Not Found Error
To make it work, I removed pub/static/all_files and re-run the static-content deploy command, cache flush, re-index multiple times, but non making effect.
Please help me to solve it. Thanks