Skip to content

Commit c6e3d4a

Browse files
committed
Remove publicRuntimeConfig from next.config.js and add engines field to package.json for Node version specification
1 parent 5575c9f commit c6e3d4a

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

next.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ const nextConfig = {
1313
}
1414
],
1515
},
16-
publicRuntimeConfig: {
17-
// remove private variables from processEnv
18-
processEnv: Object.fromEntries(
19-
Object.entries(process.env).filter(([key]) =>
20-
key.includes('NEXT_PUBLIC_')
21-
)
22-
),
23-
},
2416
}
2517

2618
module.exports = nextConfig

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "nextjs-hpc-dashboard",
33
"version": "0.1.0",
4+
"engines": {
5+
"node": ">=20.0.0"
6+
},
47
"private": true,
58
"scripts": {
69
"dev": "next dev -p 3020",

0 commit comments

Comments
 (0)