chore: 统一前端/H5 服务固定端口
- web: 5178 - web-admin: 5179 - mini-program: 5180 - life-script: 5181
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
# 开发环境配置
|
||||
VITE_API_BASE_URL=http://localhost:19089/api
|
||||
VITE_PORT=5181
|
||||
|
||||
@@ -8,6 +8,6 @@ export default defineConfig(({ mode }) => ({
|
||||
// 生产环境使用 /life-script/ 路径,开发环境使用根路径
|
||||
base: mode === 'production' ? '/life-script/' : '/',
|
||||
server: {
|
||||
port: 3000
|
||||
port: 5181
|
||||
}
|
||||
}))
|
||||
|
||||
@@ -10,3 +10,4 @@ VITE_APP_ENV=dev
|
||||
VITE_API_BASE_URL=https://lifescript.happylifeos.com/api
|
||||
VITE_WS_URL=wss://lifescript.happylifeos.com/ws
|
||||
VITE_DEBUG=true
|
||||
VITE_PORT=5180
|
||||
|
||||
@@ -42,7 +42,7 @@ export default defineConfig(({ command }) => {
|
||||
envDir: __dirname,
|
||||
publicDir: resolve(__dirname, 'static'),
|
||||
server: {
|
||||
port: 5175,
|
||||
port: 5180,
|
||||
watch: {
|
||||
usePolling: true,
|
||||
interval: 100
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 开发环境配置
|
||||
VITE_APP_TITLE=情绪博物馆管理后台
|
||||
VITE_APP_BASE_API=https://lifescript.happylifeos.com/api
|
||||
VITE_APP_PORT=5174
|
||||
VITE_APP_PORT=5179
|
||||
|
||||
@@ -10,7 +10,7 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
server: {
|
||||
port: 5174,
|
||||
port: 5179,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'https://lifescript.happylifeos.com',
|
||||
|
||||
@@ -14,3 +14,4 @@ VITE_MOCK=false
|
||||
|
||||
# 其他配置
|
||||
VITE_APP_DESCRIPTION=情绪博物馆Web系统 - 开发环境
|
||||
VITE_PORT=5178
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ export default defineConfig({
|
||||
global: 'globalThis',
|
||||
},
|
||||
server: {
|
||||
port: 5173,
|
||||
port: 5178,
|
||||
open: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
|
||||
Reference in New Issue
Block a user