78 lines
2.2 KiB
TypeScript
78 lines
2.2 KiB
TypeScript
/**
|
||
* 配置文件
|
||
* 一般只需要修噶appId即可使用
|
||
* 如果涉及到独立后端API的二次开发,可以修改apiBaseUrl
|
||
* @author Websoft Inc.
|
||
*/
|
||
|
||
// 填租户ID
|
||
const appId = 10398;
|
||
// 接口地址
|
||
let apiBaseUrl = 'https://cms-api.websoft.top/api'
|
||
// 应用名称
|
||
const appName = '广西活动房_广西集装箱_打包箱_隔离房_广西伟冠集成房屋有限公司';
|
||
|
||
|
||
|
||
|
||
// ------------------------------- Config by Websoft Inc. ---------------------------- //
|
||
|
||
const isDev = process.env.NODE_ENV === 'development'
|
||
if(isDev){
|
||
apiBaseUrl = 'http://127.0.0.1:9002/api'
|
||
}
|
||
|
||
export default defineNuxtConfig({
|
||
compatibilityDate: '2024-04-03',
|
||
devtools: {enabled: false},
|
||
modules: ["@element-plus/nuxt",'@unocss/nuxt', "@nuxt/image"],
|
||
css: [
|
||
'element-plus/dist/index.css',
|
||
'element-plus/theme-chalk/display.css',
|
||
'@/assets/css/main.css'
|
||
],
|
||
ssr: false,
|
||
plugins: [
|
||
'@/plugins/element-ui'
|
||
],
|
||
app: {
|
||
head: {
|
||
viewport: 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no',
|
||
title: '首页',
|
||
meta: [
|
||
{ name: 'keywords', content: '企业官网,建站系统,websoftCMS,网站源码,java,nuxt,antd,vue3' },
|
||
{
|
||
name: 'description',
|
||
content: 'weSite企业建站系统,助力企业信息化建设和转型,主要产品有:企业官网,电商系统,微信公众号,微信小程序应用等,使用目前最流行的技术栈打造。https://websoft.top'
|
||
}
|
||
],
|
||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||
}
|
||
},
|
||
devServer: {
|
||
port: 16880
|
||
},
|
||
$production: {
|
||
devServer: {
|
||
port: appId
|
||
}
|
||
},
|
||
$development: {
|
||
devServer: {
|
||
port: appId
|
||
}
|
||
},
|
||
runtimeConfig: {
|
||
// 客户端获取使用
|
||
public: {
|
||
apiBaseUrl,
|
||
tenantId: appId,
|
||
siteName: appName,
|
||
domain: 'websoft.top',
|
||
// 核心接口
|
||
apiServer: 'https://server.gxwebsoft.com/api',
|
||
appSecret: ''
|
||
}
|
||
}
|
||
})
|