What is the best way to set environmental variables in 1.3?
Thanks
What is the best way to set environmental variables in 1.3?
Thanks
I’m still able to use them in the same way.
Create a settings.json file. (or I have a settings.dev.json and settings.prod.json)
Make sure you .gitignore them so you don’t publish them to your repository.
example json:
{ //public for settings sent to client and server public: { analytics: "sometoken" } //all other settings private an only sent to server "secretId": "deepdarksecrets" }
then use by meteor run --settings settings.json
Can then call, for example let secret = Meteor.settings.secretId