I’m trying to pass in some keys using environment variables, but the environment variables don’t seem to go through. The app works fine when I have the keys in a Meteor settings file, but swapping the
Meteor.settings.aws.key object with
process.env.AWS_KEY breaks functionality. Any idea what I’m doing wrong?
I set the variable like this:
export AWS_KEY="key" meteor --settings settings.json
and I call it server-side in my app like this:
I notice that I get this error in the developer console when I use environment variables:
Error logging in with token: Error: You've been logged out by the server. Please log in again. 
Any insights would be appreciated. Thanks!