Skip to content

Instantly share code, notes, and snippets.

@sergical
Last active July 6, 2017 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergical/ef86680b3ce9a4034bea377decb37f02 to your computer and use it in GitHub Desktop.
Save sergical/ef86680b3ce9a4034bea377decb37f02 to your computer and use it in GitHub Desktop.
Elastic Beanstalk fix to set client side Meteor settings
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