How can I add .env variables to the app.json file

Thanks for your comment but it is far too general for me. When you say write a script, what do you mean, in what language - javascript? Then “add in the environment variables”, how would I do that. Furthermore, if I can add in environment variables to the app.json file anyway, why would I have to generate my own app.json file with a special script?

thanks