-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
29 lines (29 loc) · 938 Bytes
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export default defineNuxtConfig({
// 开关调试工具
devtools: { enabled: false },
//开关ssr模板
ssr: true,
modules: ['@element-plus/nuxt', '@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt'],
app: {
head: {
script: [
{ src: 'https://cdn.jsdelivr.net/npm/@xterm/addon-unicode11@0.8.0/lib/addon-unicode11.min.js' },
{ src: 'https://cdn.jsdelivr.net/npm/@xterm/xterm@5.5.0/lib/xterm.min.js' },
{ src: 'https://cdn.jsdelivr.net/npm/@xterm/addon-fit@0.10.0/lib/addon-fit.min.js' },
{ type: "module", src: 'https://cdn.jsdelivr.net/npm/@xterm/addon-attach@0.11.0/+esm' },
],
link: [
{ rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/@xterm/xterm@5.5.0/css/xterm.min.css' },
]
}
},
nitro: {
devProxy: {
"/api": {
target: 'http://localhost:3001/',
prependPath: true,
changeOrigin: true,
}
}
},
})