Skip to content

Commit

Permalink
fix(theme): remove check for zeit github branch
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Apr 8, 2020
1 parent 40dd773 commit 55720b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/gatsby-theme-docs/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import { docsCache } from './create-emotion-cache';

const isProduction = process.env.GATSBY_NODE_ENV === 'production';
const commitSha = process.env.GATSBY_NOW_GITHUB_COMMIT_SHA;
const environment =
process.env.GATSBY_NOW_GITHUB_COMMIT_REF === 'master'
? 'production'
: 'preview';

const injectScript = (url, attributes = {}, onLoad) => {
const script = document.createElement('script');
Expand All @@ -38,7 +34,7 @@ export const onClientEntry = (
Sentry.init({
dsn: 'https://e43538aae75e412eb16b27d8011f5a8b@sentry.io/1819068',
release: commitSha,
environment: `${environment}-${pluginOptions.websiteKey}`,
environment: pluginOptions.websiteKey,
whitelistUrls: ['docs.commercetools.com', 'now.sh'],
});
});
Expand Down

0 comments on commit 55720b4

Please sign in to comment.