Skip to content

Commit 72c0246

Browse files
author
ProxmoxVE Developer
committed
chore(deps): upgrade to Next.js 16, Vitest 4, and Node.js 24
BREAKING CHANGES: - Upgrade Next.js from 15.1.6 to 16.0.4 - Use Webpack instead of Turbopack for compatibility with server-side modules - Upgrade Node.js requirement to >=24.0.0 FEATURES: - Upgrade Vitest to 4.0.13 with improved testing capabilities - Update all vitest-related packages (@vitest/ui, @vitest/coverage-v8) - Upgrade react-syntax-highlighter to 16.1.0 - Update node-cron to 4.2.1 - Update lucide-react to 0.554.0 SECURITY: - Resolve glob command injection vulnerability (CVE) via v10.5.0 - Fix all npm audit vulnerabilities (0 vulnerabilities found) - Update prisma/client to 6.19.0 - Update all dependencies to latest secure versions FIXES: - Configure next.config.js for webpack with proper server-side module handling - Update tsconfig.json for Next.js 16 compatibility (jsx: react-jsx) - Add engines field to require Node.js >=24.0.0 - Remove deprecated webpack config in favor of Next.js 16 compatibility
1 parent bc31896 commit 72c0246

File tree

4 files changed

+1081
-1713
lines changed

4 files changed

+1081
-1713
lines changed

next.config.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,26 @@ const config = {
4343
'http://192.168.*',
4444
],
4545

46+
turbopack: {
47+
// Disable Turbopack and use Webpack instead for compatibility
48+
// This is necessary for server-side code that uses child_process
49+
},
4650
webpack: (config, { dev, isServer }) => {
4751
if (dev && !isServer) {
4852
config.watchOptions = {
4953
poll: 1000,
5054
aggregateTimeout: 300,
5155
};
5256
}
57+
// Handle server-side modules
58+
if (isServer) {
59+
config.externals = config.externals || [];
60+
if (!config.externals.includes('child_process')) {
61+
config.externals.push('child_process');
62+
}
63+
}
5364
return config;
5465
},
55-
// Ignore ESLint errors during build (they can be fixed separately)
56-
eslint: {
57-
ignoreDuringBuilds: true,
58-
},
5966
// Ignore TypeScript errors during build (they can be fixed separately)
6067
typescript: {
6168
ignoreBuildErrors: true,

0 commit comments

Comments
 (0)