chore: 调整开发预览其他环境的配置文件
This commit is contained in:
15
apps/renderer/.env.dev-production
Normal file
15
apps/renderer/.env.dev-production
Normal 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/'
|
||||
16
apps/renderer/.env.dev-staging
Normal file
16
apps/renderer/.env.dev-staging
Normal 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/'
|
||||
@@ -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/'
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user