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