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.
49 lines
1.8 KiB
49 lines
1.8 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', "@nuxt/image", "@nuxtjs/i18n"],
|
|
css: [
|
|
'element-plus/dist/index.css',
|
|
'element-plus/theme-chalk/display.css',
|
|
'@/assets/css/main.css'
|
|
],
|
|
ssr: false,
|
|
plugins: [
|
|
'@/plugins/element-ui'
|
|
],
|
|
i18n: {
|
|
strategy: 'prefix_and_default', // 添加路由前缀的方式 prefix_and_default
|
|
locales: ["zh","en"], //配置语种
|
|
defaultLocale: 'zh', // 默认语种
|
|
vueI18n: './i18n.config.ts', // 通过vueI18n配置
|
|
},
|
|
app: {
|
|
head: {
|
|
meta: [
|
|
{ name: 'keywords', content: '云·企业官网,云cms,建站系统,网站源码,java,nuxt,antd,vue3' },
|
|
{
|
|
name: 'description',
|
|
content: 'weSite企业建站系统,助力企业信息化建设和转型,主要产品有:企业官网,电商系统,微信公众号,微信小程序应用等,使用目前最流行的技术栈打造。https://websoft.top'
|
|
}
|
|
],
|
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
|
viewport: 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no',
|
|
}
|
|
},
|
|
devServer: {
|
|
port: 10301
|
|
},
|
|
runtimeConfig: {
|
|
public: {
|
|
tenantId: 10301,
|
|
// 开发环境配置
|
|
// apiServer: 'http://127.0.0.1:9002/api',
|
|
// 生产环境
|
|
apiServer: 'https://cms-api.websoft.top/api',
|
|
globalTitle: '网宿软件',
|
|
domain: 'websoft.top'
|
|
},
|
|
// 私有配置项
|
|
}
|
|
})
|