If you are using runtime config with Nuxt (see Runtime Config · Nuxt Advanced), in a production environment Nuxt will not load from .env, it will only pull from platform environment variables.
The only way I can see to do that with Cleavr is to add the .env to the pm2 config in build settings. But that means I’m managing environment variables in two places (in two different formats) because Nuxt still uses the .env during the build process (I think).
Is there a better way to do this or is this it? I suppose the .env doesn’t change a lot but it’s still a footgun imho.