Please clarify how to use .ENV

Sorry, n00b here

I’m making a Vue app and have .ENV on my local server
Now when I push it to git and it gets released in netlify, how do i can have different env variables in the netlify ?

Now when i read the docs, it says that my file defines are overwriting the ones that i make in netlify settings. I’d like it to be other way around so i can keep my local env file intact.



This is our best resource on environment variable usage:

It doesn’t start from a “dotenv” setup, and that may be problematic; you may want to review this stackoverflow post on that exact topic for a slightly different approach: