From edd234f6e529d6ee0d75fddd0b76034f1ecce048 Mon Sep 17 00:00:00 2001 From: "dbitter@anwb.nl" Date: Fri, 30 Aug 2024 13:44:49 +0200 Subject: [PATCH] feat(node): update to node 20 --- .github/workflows/main.yaml | 4 ++-- .nvmrc | 2 +- next.config.js | 2 +- package.json | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 261dce5e..2ce17ad3 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -19,10 +19,10 @@ jobs: steps: - name: Checkout current repository to Master branch uses: actions/checkout@v2 - - name: Setup NodeJs 16.x + - name: Setup NodeJs 20.x uses: actions/setup-node@v1 with: - node-version: '16.x' + node-version: '20.x' - name: Cache dependencies and build outputs to improve workflow execution time. uses: actions/cache@v1 with: diff --git a/.nvmrc b/.nvmrc index 96d7ddff..e6a17873 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.* +20.* diff --git a/next.config.js b/next.config.js index d7031b10..13e3885e 100644 --- a/next.config.js +++ b/next.config.js @@ -67,7 +67,7 @@ module.exports = withBundleAnalyzer({ }, ] }, - webpack: (config, { dev, isServer }) => { + webpack: (config) => { config.module.rules.push({ test: /\.svg$/, use: ['@svgr/webpack'], diff --git a/package.json b/package.json index eec1f17f..8e99ee15 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "prepare": "husky install" }, "engines": { - "node": "~16", - "npm": "~8" + "node": "~20", + "npm": "~10" }, "dependencies": { "@fontsource/inter": "4.5.2",