Skip to content

Commit c6c2727

Browse files
Merge pull request #342 from community-scripts/node24_securityfix
2 parents 06d4786 + 72c0246 commit c6c2727

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)