-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
50 lines (50 loc) · 1.57 KB
/
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({
devtools: { enabled: true },
modules: ['@element-plus/nuxt', '@nuxtjs/i18n', 'dayjs-nuxt'],
i18n: {
vueI18n: './i18n.config.ts'
},
css: [
'element-plus/dist/index.css',
'element-plus/theme-chalk/display.css',
'@/assets/css/main.css',
],
app: {
head: {
viewport: 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no',
title: '影视CMS-Nodejs快速搭建影视类网站',
meta: [
{ name: 'keywords', content: '影视,最新电影,最新电视剧' },
{ name: 'description', content: '影视更新最快的影视网站之一,收集了全网最新高分电影,电视剧,综艺,动漫等热播剧目免费在线观看!' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
}
},
nitro: {
// 客户端静态文件代理
devProxy: {
'/server': {
target: 'http://api.yinchunyu.com',
changeOrigin: true
},
},
// 该配置用于服务端请求转发
routeRules: {
'/server/**': {
proxy: 'http://api.yinchunyu.com/**'
}
}
},
runtimeConfig: {
public: {
baseUrl: '/server/'
}
},
// 构建后不使用样式内联
experimental: {
inlineSSRStyles: false,
}
})