From 35751bacf07ceca8134373053e12a04fa9a52afa Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 24 Mar 2020 10:49:20 +0100 Subject: [PATCH] chore: remove rollbar from client and .env --- client/gatsby-node.js | 1 - client/src/utils/report-error.js | 7 ++----- sample.env | 3 --- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/client/gatsby-node.js b/client/gatsby-node.js index 989519d79b..4c29498840 100644 --- a/client/gatsby-node.js +++ b/client/gatsby-node.js @@ -168,7 +168,6 @@ exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => { process.env.HOME_PATH || 'http://localhost:3000' ), STRIPE_PUBLIC_KEY: JSON.stringify(process.env.STRIPE_PUBLIC_KEY || ''), - ROLLBAR_CLIENT_ID: JSON.stringify(process.env.ROLLBAR_CLIENT_ID || ''), ENVIRONMENT: JSON.stringify( process.env.FREECODECAMP_NODE_ENV || 'development' ), diff --git a/client/src/utils/report-error.js b/client/src/utils/report-error.js index edbdfbab8a..af07522b2a 100644 --- a/client/src/utils/report-error.js +++ b/client/src/utils/report-error.js @@ -1,7 +1,4 @@ -/* global ENVIRONMENT */ - +// TODO: integrate with Sentry? export function reportClientSideError(e, message = 'Unhandled error') { - return ENVIRONMENT === 'production' - ? console.error(`Client: ${message}`, e) - : console.error(`Stub Rollbar call - Client: ${message}`, e); + return console.error(`Client: ${message}`, e); } diff --git a/sample.env b/sample.env index 458a5e5982..037c819be8 100644 --- a/sample.env +++ b/sample.env @@ -1,9 +1,6 @@ COMPOSE_PROJECT_NAME=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_APP_ID=X5V7KWJ4RB ALGOLIA_API_KEY=a45d2b80c97479bbda5cf5c55914230f