I've got an issue where on my local server the app works perfectly no issues, yesterday in production the app wored fine, i then made a change to the CSS and ran npm run build and transferred to the live server however now on the live server i'm getting an error of.
GET http://127....../resources/css/app.css net::ERR_FAILED
I tried removing the css i added, re running the build etc but still no joy.
i've added it to env and re ran npm run build on production server and now get:-
npm ERR! Failed at the @ build script.. but i can run build locally ok lol
The thing i'm confused about is its been working fine for months with vite and without the ASSET_URL in env so i don't understand why it now isnt working
@ollie_123 I cannot say where it's getting the 127.0.0.1 from on production if it's not from env. I don't have it set myself and build on production just fine. Also I don't know why it has resources in the url
But I'm confused. First you said you build locally and transfer to production, but now you build on production?
Normally and in the past i build locally then transfer to live and all is good. It was only when i added the asset_url in the env i thought i would try building on the production server as my local asset_url ends in .app and the production url ends in .co.uk so thought it might throw it off.
I might try removing the whole app from the server and re uploading :/ lol
THanks @sinnbeck & @shaungbhone, still not sure what caused it but i removed the public & resources file from the server & re uploaded them and it seems to have solved it.
Really appreciate your help & the quick responses to this. Thank you.