Skip to content

Instantly share code, notes, and snippets.

@ebramanti
Last active February 17, 2016 02:38
Show Gist options
  • Save ebramanti/96115efca83c49f2a889 to your computer and use it in GitHub Desktop.
Save ebramanti/96115efca83c49f2a889 to your computer and use it in GitHub Desktop.
const getEnvironment = (api) => {
if (process.env.NODE_ENV !== 'staging') {
return api.master();
}
return api.ref(STAGING_RELEASE_NAME) || api.master();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment