chore: 调整开发预览其他环境的配置文件

This commit is contained in:
wangxuefeng
2025-03-13 11:34:10 +08:00
parent f0d3380b6c
commit a15d6ec6c3
17 changed files with 146 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
# 只在生产模式中被载入
VITE_NODE_ENV = 'development'
# 公共基础路径, 详见: https://cn.vitejs.dev/guide/build.html#public-base-path
VITE_BASE_URL = /
VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/'
VITE_DEBUG_MODE = true
VITE_PORT = 10012
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'

View File

@@ -0,0 +1,16 @@
# 只在预发布模式中被载入
VITE_NODE_ENV = 'development'
# 公共基础路径, 详见: https://cn.vitejs.dev/guide/build.html#public-base-path
VITE_BASE_URL = /
# 端口
VITE_PORT = 10012
# base api url
VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
VITE_DEBUG_MODE = true
VITE_PLATFORM_URL = 'https://localhost:10010/'
VITE_DESIGNER_URL = 'https://localhost:10011/'
VITE_RENDERER_URL = 'https://localhost:10012/'

View File

@@ -4,7 +4,6 @@ VITE_NODE_ENV = 'development'
# 公共基础路径, 详见: https://cn.vitejs.dev/guide/build.html#public-base-path
VITE_BASE_URL = /
# 前端可见变量(必须以 VITE_ 开头)
VITE_PORT = 10012
# VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/'

View File

@@ -4,8 +4,8 @@
"type": "module",
"scripts": {
"dev": "vite dev --mode development",
"dev:staging": "vite dev --mode staging",
"dev:prod": "vite dev --mode production",
"dev:staging": "vite dev --mode dev-staging",
"dev:prod": "vite dev --mode dev-production",
"build": "vite build --mode production",
"build:staging": "vite build --mode staging",
"build:dev": "vite build --mode development",