-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-content-pages: Remove Sentry, New Relic, and Million.js (#5762)
* remove sentry, new relic, and million * remove outdated next-absolute-path
- Loading branch information
1 parent
ec27331
commit acc8dd2
Showing
23 changed files
with
4 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
if (process.env.NEWRELIC_LICENSE_KEY) { | ||
require('newrelic') | ||
} | ||
|
||
require('dotenv').config() | ||
|
||
const million = require('million/compiler') | ||
const { execSync } = require('child_process') | ||
const Dotenv = require('dotenv-webpack') | ||
const path = require('path') | ||
const { withSentryConfig } = require('@sentry/nextjs') | ||
const { i18n } = require('./next-i18next.config') | ||
|
||
const assetPrefixes = {} | ||
|
@@ -21,10 +15,8 @@ function commitID () { | |
} | ||
} | ||
|
||
const isDevelopment = process.env.NODE_ENV === 'development' | ||
const PANOPTES_ENV = process.env.PANOPTES_ENV || 'staging' | ||
const webpackConfig = require('./webpack.config') | ||
const SENTRY_CONTENT_DSN = isDevelopment ? '' : 'https://[email protected]/1492498' | ||
const APP_ENV = process.env.APP_ENV || 'development' | ||
const COMMIT_ID = process.env.COMMIT_ID || commitID() | ||
const assetPrefix = assetPrefixes[APP_ENV] | ||
|
@@ -44,12 +36,12 @@ const nextConfig = { | |
env: { | ||
COMMIT_ID, | ||
PANOPTES_ENV, | ||
SENTRY_CONTENT_DSN, | ||
APP_ENV | ||
}, | ||
|
||
experimental: { | ||
forceSwcTransforms: true | ||
forceSwcTransforms: true, | ||
optimizePackageImports: ['@zooniverse/react-components', 'grommet', 'grommet-icons'] | ||
}, | ||
|
||
/** localeDetection is a Next.js feature, while the rest of i18n config pertains to next-i18next */ | ||
|
@@ -58,21 +50,8 @@ const nextConfig = { | |
...i18n | ||
}, | ||
|
||
modularizeImports: { | ||
lodash: { | ||
transform: 'lodash/{{member}}', | ||
}, | ||
'@zooniverse/react-components': { | ||
transform: '@zooniverse/react-components/{{member}}' | ||
} | ||
}, | ||
|
||
reactStrictMode: true, | ||
|
||
sentry: { | ||
hideSourceMaps: true | ||
}, | ||
|
||
webpack: (config, options) => { | ||
config.plugins.concat([ | ||
new Dotenv({ | ||
|
@@ -96,12 +75,4 @@ const nextConfig = { | |
} | ||
} | ||
|
||
module.exports = million.next( | ||
withSentryConfig(nextConfig, { | ||
org: 'zooniverse-27', | ||
project: 'fem-app-content-pages' | ||
}), | ||
{ | ||
auto: true | ||
} | ||
) | ||
module.exports = nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.