Skip to content

Commit

Permalink
upgrade next and react to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Oct 23, 2024
1 parent a06d298 commit 1fa7745
Show file tree
Hide file tree
Showing 3 changed files with 12,660 additions and 9,657 deletions.
26 changes: 20 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,28 @@ 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 @@ -197,6 +205,12 @@ const config =
enabled: process.env.ANALYZE === 'true',
})(nextConfig)
: nextConfig;
const nextConfigWithSentry = withSentryConfig(config, sentrySettings, sentryConfig);
const nextConfigWithSentry = withSentryConfig(
config,
sentrySettings,
sentryConfig,
);

export default process.env.NODE_ENV === 'production' ? nextConfigWithSentry : config;
export default process.env.NODE_ENV === 'production'
? nextConfigWithSentry
: config;
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"version": "0.0.1",
"engines": {
"node": ">=18"
"node": ">=v18.18.0"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand Down Expand Up @@ -81,7 +81,7 @@
"lucene": "^2.1.1",
"match-sorter": "^6.3.1",
"memoize-one": "^6.0.0",
"next": "14.2.10",
"next": "15.0.1",
"next-build-id": "^3.0.0",
"nprogress": "^0.2.0",
"pino": "^8.16.2",
Expand All @@ -90,7 +90,7 @@
"qs": "^6.11.0",
"ramda": "^0.28.0",
"ramda-adjunct": "^3.3.0",
"react": "^18.2.0",
"react": "^18.3.1",
"react-compound-slider": "^3.4.0",
"react-device-detect": "^2.2.3",
"react-error-boundary": "^4.0.4",
Expand Down Expand Up @@ -174,7 +174,7 @@
"msw": "^1.2.3",
"msw-storybook-addon": "^1.8.0",
"prettier": "^2.3.0",
"react-dom": "^18.2.0",
"react-dom": "^18.3.1",
"react-is": "^17.0.2",
"regenerator-runtime": "^0.13.9",
"storybook": "^7.5.3",
Expand All @@ -187,7 +187,7 @@
"webpack": "^5.94.0"
},
"volta": {
"node": "18.15.0",
"node": "18.18.0",
"yarn": "1.22.19"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit 1fa7745

Please sign in to comment.