Hi I am pretty new to Dev Ops side of things. So I have a Laravel Vue app where I utilize APIs for some request. Both web app and APIs are on same server for now.
So in my local env file I have variable like
MIX_DEFAULT_API_URL=http://127.0.0.1:8000
but in production env I have production URL
Problem is every time I push to production the links are overriden and I have to run
npm run production to fix that
is there any solution to this or this is the way it is ?