This commit is contained in:
hailin 2025-07-28 19:36:07 +08:00
parent 28d1b6c254
commit 1696633a15
1 changed files with 6 additions and 3 deletions

View File

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