修复cf兼容性

This commit is contained in:
mtvpls
2026-01-23 21:49:17 +08:00
parent 8d971650c5
commit 79b0201c64
2 changed files with 34 additions and 10 deletions
+26 -1
View File
@@ -11,7 +11,32 @@ const config: OpenNextConfig = {
queue: 'dummy',
},
},
edgeExternals: ['node:crypto'],
edgeExternals: [
'node:crypto',
'node:async_hooks',
'node:buffer',
'node:stream',
'node:util',
'node:events',
'node:path',
'node:url',
'node:fs',
'node:http',
'node:https',
'node:net',
'node:tls',
'node:dns',
'node:os',
'node:zlib',
'node:vm',
'node:child_process',
'node:string_decoder',
'node:tty',
'node:assert',
'node:punycode',
'node:timers',
'node:worker_threads',
],
middleware: {
external: true,
override: {