Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Sentry to latest #550

Merged
merged 5 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
}
],
"@typescript-eslint/no-empty-function": ["warn"],
"@typescript-eslint/no-empty-object-type": ["warn"],
"@typescript-eslint/no-empty-interface": [
"error",
{
Expand Down
28 changes: 22 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,29 @@ const CSP = `
**/
const nextConfig = {
distDir: process.env.DIST_DIR || 'dist',
generateBuildId: async () => nextBuildId({ dir: process.env.__dirname, describe: true }),
generateBuildId: async () =>
nextBuildId({ dir: process.env.__dirname, describe: true }),
generateEtags: true,
poweredByHeader: false,
reactStrictMode: true,
experimental: {
newNextLinkBehavior: false,
webVitalsAttribution: ['CLS', 'LCP'],
optimizePackageImports: ['@api', '@components', '@chakra-ui/react', 'ramda'],
optimizePackageImports: [
'@api',
'@components',
'@chakra-ui/react',
'ramda',
],
},
async rewrites() {
if (process.env.NODE_ENV !== 'production') {
return {
beforeFiles: [
{ source: '/link_gateway/:path*', destination: `${process.env.BASE_CANONICAL_URL}/link_gateway/:path*` },
{
source: '/link_gateway/:path*',
destination: `${process.env.BASE_CANONICAL_URL}/link_gateway/:path*`,
},
],
};
}
Expand Down Expand Up @@ -191,7 +200,14 @@ const sentryConfig = {
disableLogger: true,
};

const config = process.env.ANALYZE === 'true' ? withBundleAnalyzer(nextConfig) : nextConfig;
const nextConfigWithSentry = withSentryConfig(config, sentrySettings, sentryConfig);
const config =
process.env.ANALYZE === 'true' ? withBundleAnalyzer(nextConfig) : nextConfig;
const nextConfigWithSentry = withSentryConfig(
config,
sentrySettings,
sentryConfig,
);

export default process.env.NODE_ENV === 'production' ? nextConfigWithSentry : config;
export default process.env.NODE_ENV === 'production'
? nextConfigWithSentry
: config;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@nivo/bar": "^0.80.0",
"@nivo/core": "^0.80.0",
"@nivo/line": "^0.80.0",
"@sentry/nextjs": "^7.94.1",
"@sentry/nextjs": "^8.35.0",
"@storybook/addon-controls": "^7.5.3",
"@storybook/client-api": "^7.5.3",
"@storybook/testing-react": "^2.0.1",
Expand Down
3,112 changes: 2,299 additions & 813 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Loading
Loading