Last active
July 6, 2017 19:19
-
-
Save sergical/ef86680b3ce9a4034bea377decb37f02 to your computer and use it in GitHub Desktop.
Elastic Beanstalk fix to set client side Meteor settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Meteor.isProduction) { | |
// public settings that need to be exposed to the client can be added here | |
const publicEnvs = { | |
// Your client settings go here | |
}; | |
Meteor.settings.public = publicEnvs; | |
__meteor_runtime_config__.PUBLIC_SETTINGS = Meteor.settings.public; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment