I
пойду попробую сбилдить на дев сервере
Size: a a a
I
YZ
I
I
I
I
AN
AN
AN
AN
AN
const bugsnag = import(/* webpackChunkName: "reporter" */ '@bugsnag/js');
const bugsnagReact = import(/* webpackChunkName: "reporter" */ '@bugsnag/plugin-react');
🦜
const bugsnag = import(/* webpackChunkName: "reporter" */ '@bugsnag/js');
const bugsnagReact = import(/* webpackChunkName: "reporter" */ '@bugsnag/plugin-react');
🦜
AN
🦜
🦜
🦜
AN
import React from 'react';
import { BUGSNAG_API_KEY, BUGSNAG_RELEASE_STAGE } from 'constants/env';
let bugsnagClient;
(async () => {
const bugsnag = await import(/* webpackChunkName: "reporter" */ '@bugsnag/js');
const bugsnagReact = await import(/* webpackChunkName: "reporter" */ '@bugsnag/plugin-react');
if (process.env.NODE_ENV !== 'test') {
bugsnagClient = bugsnag({
apiKey: BUGSNAG_API_KEY,
releaseStage: BUGSNAG_RELEASE_STAGE,
notifyReleaseStages: ['production'],
});
bugsnagClient.use(bugsnagReact, React);
}
})();
export default bugsnagClient;
import bugsnagClient from 'utils/bugsnag';
const ErrorBoundary = bugsnagClient.getPlugin('react');
export default const App = props => (<ErrorBoundary>…</ErrorBoundary>);
AN
import React from 'react';
import { LOCALE } from 'constants/env';
import { LegalPage } from 'components/templates';
const LegalPageWithData = ({ content }) => (
<LegalPage content={content} activePage="cookiePolicy" />
);
LegalPageWithData.getInitialProps = async function() {
const content = await import(
/* webpackChunkName: "cookiePolicy" */ `content/${LOCALE}/cookiePolicy.md`
);
return { content };
}
export default LegalPageWithData;
AN