System Information
- Strapi Version: v5
I have read the docs regarding env files,
but I feel like I am missing a crucial piece of information.
I do not want to have hardcoded values in these files, since these are uploaded to github. So i need an env() call.
But strapi says nowhere how to setup multiple .env files for this case. RIght now, my /config/env/development/plugins.ts looks like this
export default ({ env }) => {
console.log("ACCESS_TOKEN_ID:", env("ACCESS_TOKEN_ID"));
console.log("WEBHOOK_SIGNING_SECRET: ", env("WEBHOOK_SIGNING_SECRET"));
console.log("NODE ENV: ", env("NODE_ENV"));
// ...
return {
"mux-video-uploader": {
enabled: true,
config: {
accessTokenId: env("ACCESS_TOKEN_ID"),
secretKey: env("ACCESS_TOKEN_SECRET"),
webhookSigningSecret: env("WEBHOOK_SIGNING_SECRET"),
playbackSigningId: env("SIGNING_KEY_ID"),
playbackSigningSecret: env("SIGNING_KEY_PRIVATE_KEY"),
},
},
// ...
};
};
I can see that i am under “development” node-env, but it still loads my values from .env and not from .env.development I don’t understand the whole concept of having multiple config/… setups if you can’t use multiple .env files.
Does this mean I have to setup the ENV PATH in my starting strapi comment? Is Strapi not supporting this out of the box?