This commit is contained in:
parent
28d1b6c254
commit
1696633a15
|
|
@ -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))],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue