Skip to content

Commit 4f7d711

Browse files
committed
Update Next.js and align Node 24 tooling
1 parent 640f1ae commit 4f7d711

10 files changed

Lines changed: 2241 additions & 1008 deletions

.github/workflows/cb-service-container.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [16.x]
17+
node-version: [24.x]
1818
steps:
1919
- name: Update repositories
2020
run: |
2121
apt update || echo "apt-update failed" # && apt -y upgrade
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
- name: Setup couchbase

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To deploy this project on Vercel, you will need:
4848
To run this project locally, you will need:
4949

5050
- A Couchbase Capella database or Couchbase 7+ database running locally
51-
- Node.js 16+ and npm
51+
- Node.js 24 LTS and npm
5252
- Next.js
5353
- Code Editor
5454

eslint.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from "eslint/config";
2+
import nextVitals from "eslint-config-next/core-web-vitals";
3+
4+
export default defineConfig([
5+
...nextVitals,
6+
{
7+
rules: {
8+
"no-unused-vars": ["error", { vars: "all", args: "after-used", ignoreRestSiblings: false }],
9+
semi: ["error", "always", { omitLastInOneLineBlock: true }]
10+
}
11+
}
12+
]);

jest.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import nextJest from 'next/jest.js'
1+
import nextJest from 'next/jest.js';
22

33
const createJestConfig = nextJest({
44
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
55
dir: './',
6-
})
6+
});
77

88
// Add any custom config to be passed to Jest
99
/** @type {import('jest').Config} */
@@ -12,7 +12,7 @@ const config = {
1212
setupFiles: ['<rootDir>/jest.setup.js'],
1313

1414
testEnvironment: 'node',
15-
}
15+
};
1616

1717
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
18-
export default createJestConfig(config)
18+
export default createJestConfig(config);

0 commit comments

Comments
 (0)