Skip to content

Commit

Permalink
bump node to LTS 20.9.0, remove nextjs bundle analyser
Browse files Browse the repository at this point in the history
  • Loading branch information
ob6160 committed Sep 23, 2024
1 parent 9315ab0 commit f39b8e8
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 221 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.12.1
20.9.0
7 changes: 1 addition & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ const moduleExports = {
},
};

// eslint-disable-next-line @typescript-eslint/no-var-requires
const withNextAnalyser = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});

// https://plausible.io/docs/proxy/guides/nextjs
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { withPlausibleProxy } = require('next-plausible');

// eslint-disable-next-line functional/immutable-data
module.exports = withNextAnalyser(withPlausibleProxy()(moduleExports));
module.exports = withPlausibleProxy()(moduleExports);
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"@jest/globals": "^29.7.0",
"@mapbox/geojson-area": "^0.2.2",
"@mapbox/geojson-rewind": "^0.5.2",
"@next/bundle-analyzer": "^13.5.4",
"@parcel/watcher": "^2.4.1",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
Expand All @@ -134,7 +133,7 @@
"@types/mapbox": "^1.6.45",
"@types/mapbox__geojson-area": "^0.2.6",
"@types/ngeohash": "^0.6.4",
"@types/node": "^18.16.3",
"@types/node": "^20.9.0",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/styled-system": "^5.1.22",
Expand Down Expand Up @@ -183,11 +182,6 @@
"webpack": "^5.91.0"
},
"packageManager": "[email protected]",
"nextBundleAnalysis": {
"budget": 204800,
"budgetPercentIncreaseRed": 10,
"showDetails": true
},
"pnpm": {
"overrides": {
"trim@<0.0.3": ">=0.0.3",
Expand Down
Loading

0 comments on commit f39b8e8

Please sign in to comment.