Skip to content

Commit

Permalink
fix: dev build process error (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay authored Feb 6, 2020
1 parent 9fa367b commit f4546ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
10 changes: 4 additions & 6 deletions packages/marketplace/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ import ToastMessage from '../components/ui/toast-message'
import { PortalProvider } from '@reapit/elements'
import ReactGA from 'react-ga'

const { NODE_ENV, MARKETPLACE_GOOGLE_ANALYTICS_KEY, SENTRY_PROJECT_URL } = process.env

if (NODE_ENV !== 'development' && SENTRY_PROJECT_URL) {
Sentry.init({ dsn: (SENTRY_PROJECT_URL as any).MARKETPLACE })
if (process.env.NODE_ENV !== 'development' && process.env.SENTRY_PROJECT_URL_MARKETPLACE) {
Sentry.init({ dsn: process.env.SENTRY_PROJECT_URL_MARKETPLACE })
}

if (NODE_ENV !== 'development' && MARKETPLACE_GOOGLE_ANALYTICS_KEY) {
ReactGA.initialize(MARKETPLACE_GOOGLE_ANALYTICS_KEY)
if (process.env.NODE_ENV !== 'development' && process.env.MARKETPLACE_GOOGLE_ANALYTICS_KEY) {
ReactGA.initialize(process.env.MARKETPLACE_GOOGLE_ANALYTICS_KEY)
ReactGA.pageview(window.location.pathname + window.location.search)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-functions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f4546ae

Please sign in to comment.