forked from gxwebsoft/websoft-cms
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: '2024-04-03',
|
|
devtools: {enabled: false},
|
|
modules: ["@element-plus/nuxt",'@unocss/nuxt'],
|
|
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-影视类网站模板',
|
|
meta: [
|
|
{ name: 'keywords', content: '小象CMS,影视,最新电影,最新电视剧' },
|
|
{
|
|
name: 'description',
|
|
content: '小象CMS'
|
|
}
|
|
],
|
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
|
|
}
|
|
},
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: '/server',
|
|
globalTitle: '小象影视'
|
|
}
|
|
},
|
|
nitro: {
|
|
// 该配置用于服务端请求转发
|
|
routeRules: {
|
|
'/server/**': {
|
|
proxy: 'http://127.0.0.1:9001/api/**'
|
|
}
|
|
}
|
|
}
|
|
})
|