修复cf兼容性
This commit is contained in:
+26
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user