feat: 文件清单与图片预览的 P2P 部分挪到浏览器端(WebRTC),服务端仅缓存兜底
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import nodePolyfills from 'vite-plugin-node-polyfills'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: { enabled: false },
|
||||
@@ -27,6 +29,12 @@ export default defineNuxtConfig({
|
||||
}
|
||||
},
|
||||
vite: {
|
||||
plugins: [
|
||||
nodePolyfills({
|
||||
globals: { Buffer: true, global: true, process: true },
|
||||
protocolImports: true
|
||||
})
|
||||
],
|
||||
server: {
|
||||
fs: { strict: false }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user