diff --git a/php_pc/nuxt.config.ts b/php_pc/nuxt.config.ts index 7b0e88a..523f2f6 100644 --- a/php_pc/nuxt.config.ts +++ b/php_pc/nuxt.config.ts @@ -50,13 +50,16 @@ export default defineNuxtConfig({ }, preset: 'node-server', prerender: { - routes: [], // 不渲染任何页面 - crawlLinks: false, // 不扫描 链接 - failOnError: false // 即使报错也继续构建 + routes: [], + crawlLinks: false, + failOnError: false } }, vite: { + ssr: { + noExternal: ['@matechat/core'], + }, plugins: [ createSvgIconsPlugin({ iconDirs: [fileURLToPath(new URL("./src/assets/icons", import.meta.url))],