Skip to content

Instantly share code, notes, and snippets.

@johanbrook
Created October 6, 2015 07:58
Show Gist options
  • Save johanbrook/26edbf0ef35a5df34c53 to your computer and use it in GitHub Desktop.
Save johanbrook/26edbf0ef35a5df34c53 to your computer and use it in GitHub Desktop.
Disable Hot Code Reload in Meteor with a settings variable (`DISABLE_AUTO_RELOAD`).
Meteor.startup(function() {
if (Meteor.settings && Meteor.settings.public && Meteor.settings.public.DISABLE_AUTO_RELOAD) {
Meteor._reload.onMigrate(function(reloadFunction) {
return [false];
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment