I'm building a Nuxt 3 app, but I have a problema with .env file.
In production if I navigate www.mydomain.com/.env i can see al sensible data like API key.
I'trying to use runtimeConfig with apiSecret like this
runtimeConfig: {
// Keys within public, will be also exposed to the client-side
apiSecret: {
//stripe_pk: process.env.STRIPE_PK,
//client_id: process.env.CLIENT_ID,
api_key: example
},
but I encountered the same problem. Where is the mistake?