chore: remove rollbar from client and .env

This commit is contained in:
Oliver Eyton-Williams
2020-03-24 10:49:20 +01:00
committed by Mrugesh Mohapatra
parent 38e7369b92
commit 35751bacf0
3 changed files with 2 additions and 9 deletions

View File

@ -168,7 +168,6 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
process.env.HOME_PATH || 'http://localhost:3000' process.env.HOME_PATH || 'http://localhost:3000'
), ),
STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''), STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''),
ROLLBAR_CLIENT_ID: JSON.stringify(process.env.ROLLBAR_CLIENT_ID || ''),
ENVIRONMENT: JSON.stringify( ENVIRONMENT: JSON.stringify(
process.env.FREECODECAMP_NODE_ENV || 'development' process.env.FREECODECAMP_NODE_ENV || 'development'
), ),

View File

@ -1,7 +1,4 @@
/* global ENVIRONMENT */ // TODO: integrate with Sentry?
export function reportClientSideError(e, message = 'Unhandled error') { export function reportClientSideError(e, message = 'Unhandled error') {
return ENVIRONMENT === 'production' return console.error(`Client: ${message}`, e);
? console.error(`Client: ${message}`, e)
: console.error(`Stub Rollbar call - Client: ${message}`, e);
} }

View File

@ -1,9 +1,6 @@
COMPOSE_PROJECT_NAME=freecodecamp COMPOSE_PROJECT_NAME=freecodecamp
MONGOHQ_URL='mongodb://localhost:27017/freecodecamp' MONGOHQ_URL='mongodb://localhost:27017/freecodecamp'
ROLLBAR_APP_ID='my-rollbar-app-id'
ROLLBAR_CLIENT_ID='post_client_id from rollbar dashboard'
ALGOLIA_ADMIN_KEY=123abc ALGOLIA_ADMIN_KEY=123abc
ALGOLIA_APP_ID=X5V7KWJ4RB ALGOLIA_APP_ID=X5V7KWJ4RB
ALGOLIA_API_KEY=a45d2b80c97479bbda5cf5c55914230f ALGOLIA_API_KEY=a45d2b80c97479bbda5cf5c55914230f