If you use Docker for local development, you can bridge your .env.development directly into your containers.
Most modern frameworks support a cascade. Implement this structure: .env.development
API_ENDPOINT_DEV=http://localhost:3000/api API_KEY_DEV=myapikey If you use Docker for local development, you can bridge your