Skip to content

Commit

Permalink
build: upgrade frontend-platform (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Jun 3, 2021
1 parent 546f785 commit ed9948d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 17 deletions.
40 changes: 28 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"dependencies": {
"@babel/plugin-transform-runtime": "7.12.1",
"@edx/brand": "npm:@edx/brand-openedx@^1.1.0",
"@edx/frontend-enterprise-catalog-search": "^0.1.10",
"@edx/frontend-enterprise-logistration": "^0.1.11",
"@edx/frontend-enterprise-utils": "^0.1.7",
"@edx/frontend-platform": "1.8.4",
"@edx/frontend-enterprise-catalog-search": "0.1.10",
"@edx/frontend-enterprise-logistration": "0.1.11",
"@edx/frontend-enterprise-utils": "0.1.7",
"@edx/frontend-platform": "1.11.0",
"@edx/paragon": "14.12.4",
"@fortawesome/fontawesome-svg-core": "1.2.35",
"@fortawesome/free-brands-svg-icons": "5.15.3",
Expand Down
11 changes: 10 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'regenerator-runtime/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import {
initialize, APP_INIT_ERROR, APP_READY, subscribe,
initialize, APP_INIT_ERROR, APP_READY, subscribe, mergeConfig,
} from '@edx/frontend-platform';
import { ErrorPage } from '@edx/frontend-platform/react';

Expand All @@ -25,6 +25,15 @@ subscribe(APP_INIT_ERROR, (error) => {
});

initialize({
handlers: {
config: () => {
mergeConfig({
// Logs JS errors matching the following regex as NewRelic page actions instead of
// errors,reducing JS error noise.
IGNORED_ERROR_REGEX: '(Axios Error|\'removeChild\'|Script error|getReadModeExtract)',
});
},
},
messages: [],
requireAuthenticatedUser: false,
hydrateAuthenticatedUser: true,
Expand Down

0 comments on commit ed9948d

Please sign in to comment.