环境配置
This commit is contained in:
parent
f1962421ef
commit
96c000d2e9
|
@ -4,6 +4,8 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"local": "vite --mode loc",
|
||||
"prod": "vite --mode production",
|
||||
"preview": "vite preview --port 4173",
|
||||
"build": "vite build && node scripts/release.mjs",
|
||||
"build:prod": "vite build --mode production",
|
||||
|
|
|
@ -2,7 +2,6 @@ const config = {
|
|||
terminal: 1, //终端
|
||||
title: '后台管理系统', //网站默认标题
|
||||
version: '1.8.0', //版本号
|
||||
// baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名
|
||||
baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名
|
||||
urlPrefix: 'adminapi', //请求默认前缀
|
||||
timeout: 10 * 1000 //请求超时时长
|
||||
|
|
|
@ -14,7 +14,9 @@ import vueSetupExtend from 'vite-plugin-vue-setup-extend'
|
|||
export default defineConfig({
|
||||
base: '/admin/',
|
||||
server: {
|
||||
host: '0.0.0.0'
|
||||
host: '0.0.0.0',
|
||||
open: true,
|
||||
port: 8787,
|
||||
},
|
||||
plugins: [
|
||||
vue(),
|
||||
|
|
Loading…
Reference in New Issue