-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
50 lines (50 loc) · 972 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
'@element-plus/nuxt',
'@vueuse/nuxt',
// '@sidebase/nuxt-auth'
],
elementPlus: {
importStyle: 'scss',
noStylesComponents: ['el-tree']
},
// auth: {
// provider: { type: 'local' }
// },
router: {
options: {
scrollBehaviorType: 'smooth'
}
},
routeRules: {
'/': { swr: true },
'/display/**': { swr: true },
},
vite: {
ssr: {
noExternal: ['@popperjs/core', 'echarts']
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@use "@/assets/style/element-plus/index" as *;`,
}
}
}
},
devtools: {
enabled: true
},
nitro: {
devProxy: {
'/api': {
target: 'https://api.pams.ishortv.top',
changeOrigin: true,
cookieDomainRewrite: {
'pams.ishortv.top': 'localhost'
}
}
}
}
});