feat: 文件清单与图片预览的 P2P 部分挪到浏览器端(WebRTC),服务端仅缓存兜底

This commit is contained in:
ice-a
2026-10-16 19:39:16 +08:00
parent bab0218b57
commit cc6cb76d67
5 changed files with 189 additions and 28 deletions
+8
View File
@@ -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 }
}