Skip to content

Commit 57761fd

Browse files
committed
Fix Build Errors and Runtime Errors
1 parent 347e10b commit 57761fd

6 files changed

Lines changed: 22 additions & 6 deletions

File tree

.claude/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(node -e \"console.log\\(require\\('./package.json'\\).engines || '\\(none\\)'\\)\")",
5+
"Bash(node -e \"const j = require\\('jose'\\); console.log\\('require\\(jose\\) OK on', process.version, '— exports:', Object.keys\\(j\\).length\\)\")",
6+
"Bash(node -e \"console.log\\(JSON.stringify\\(require\\('./package.json'\\).engines\\)\\)\")"
7+
]
8+
}
9+
}

.github/workflows/backup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Zenith Data Backup
1+
name: PBCTF Data Backup
22

33
on:
44
schedule:

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Node.js
2323
uses: actions/setup-node@v4
2424
with:
25-
node-version: 20
25+
node-version: 24
2626
cache: "npm"
2727

2828
- name: Install dependencies

.github/workflows/lint.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Lint
22

33
on:
44
push:
5-
branches: ['*']
5+
branches: ["*"]
66
pull_request:
7-
branches: ['*']
7+
branches: ["*"]
88

99
concurrency:
1010
group: ${{ github.workflow }}-${{ github.ref }}
@@ -21,8 +21,8 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
25-
cache: 'npm'
24+
node-version: 24
25+
cache: "npm"
2626

2727
- name: Install dependencies
2828
run: npm ci

netlify.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
command = "npm run build"
33
publish = ".next"
44

5+
[build.environment]
6+
NODE_VERSION = "22"
7+
AWS_LAMBDA_JS_RUNTIME = "nodejs22.x"
8+
59
[[plugins]]
610
package = "@netlify/plugin-nextjs"

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "nextjs",
33
"version": "0.1.0",
44
"private": true,
5+
"engines": {
6+
"node": ">=22"
7+
},
58
"scripts": {
69
"dev": "next dev",
710
"build": "next build",

0 commit comments

Comments
 (0)