chore: 调整开发预览其他环境的配置文件
This commit is contained in:
parent
f0d3380b6c
commit
a15d6ec6c3
15
apps/designer/.env.dev-production
Normal file
15
apps/designer/.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_PORT = 10011
|
||||
|
||||
VITE_DEBUG_MODE = true
|
||||
|
||||
VITE_PLATFORM_URL = 'https://localhost:10010/'
|
||||
VITE_DESIGNER_URL = 'https://localhost:10011/'
|
||||
VITE_RENDERER_URL = 'https://localhost:10012/'
|
16
apps/designer/.env.dev-staging
Normal file
16
apps/designer/.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 = /
|
||||
|
||||
# base api url
|
||||
VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
|
||||
|
||||
VITE_PORT = 10011
|
||||
|
||||
VITE_DEBUG_MODE = true
|
||||
|
||||
VITE_PLATFORM_URL = 'https://localhost:10010/'
|
||||
VITE_DESIGNER_URL = 'https://localhost:10011/'
|
||||
VITE_RENDERER_URL = 'https://localhost:10012/'
|
@ -4,14 +4,12 @@ VITE_NODE_ENV = 'development'
|
||||
# 公共基础路径, 详见: https://cn.vitejs.dev/guide/build.html#public-base-path
|
||||
VITE_BASE_URL = /
|
||||
|
||||
# 前端可见变量(必须以 VITE_ 开头)
|
||||
VITE_PORT = 10011
|
||||
# VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
|
||||
VITE_BASE_API_URL = 'https://custom-chart-api.shiyuegame.com/'
|
||||
|
||||
VITE_DEBUG_MODE = true
|
||||
|
||||
|
||||
|
||||
VITE_PLATFORM_URL = 'https://localhost:10010/'
|
||||
VITE_DESIGNER_URL = 'https://localhost:10011/'
|
||||
VITE_RENDERER_URL = 'https://localhost:10012/'
|
||||
|
@ -6,8 +6,8 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --mode development",
|
||||
"dev:staging": "vite --mode staging",
|
||||
"dev:prod": "vite --mode production",
|
||||
"dev:staging": "vite --mode dev-staging",
|
||||
"dev:prod": "vite --mode dev-production",
|
||||
"build": "vite build --mode production",
|
||||
"build:staging": "vite build --mode staging",
|
||||
"build:dev": "vite build --mode development",
|
||||
|
@ -36,7 +36,7 @@ export default defineConfig(({ mode }) => {
|
||||
...config,
|
||||
server: {
|
||||
https: true,
|
||||
port: Number(env.VITE_PORT),
|
||||
port: isDev ? Number(env.VITE_PORT) : undefined,
|
||||
host: true
|
||||
},
|
||||
define: {
|
||||
|
37
apps/platform/.env.dev-production
Normal file
37
apps/platform/.env.dev-production
Normal file
@ -0,0 +1,37 @@
|
||||
VITE_BASE=/
|
||||
|
||||
# 接口地址
|
||||
VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
|
||||
|
||||
# 是否开启压缩,可以设置为 none, brotli, gzip
|
||||
VITE_COMPRESS=none
|
||||
|
||||
# 是否开启 PWA
|
||||
VITE_PWA=false
|
||||
|
||||
# vue-router 的模式
|
||||
VITE_ROUTER_HISTORY=hash
|
||||
|
||||
# 是否注入全局loading
|
||||
VITE_INJECT_APP_LOADING=true
|
||||
|
||||
# 打包后是否生成dist.zip
|
||||
VITE_ARCHIVER=true
|
||||
|
||||
|
||||
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_PORT=10010
|
||||
|
||||
VITE_DEBUG_MODE = true
|
||||
|
||||
VITE_PLATFORM_URL = 'https://localhost:10010/'
|
||||
VITE_DESIGNER_URL = 'https://localhost:10011/'
|
||||
VITE_RENDERER_URL = 'https://localhost:10012/'
|
||||
VITE_V1_URL = 'https://localhost:10013/'
|
||||
|
17
apps/platform/.env.dev-staging
Normal file
17
apps/platform/.env.dev-staging
Normal file
@ -0,0 +1,17 @@
|
||||
# 只在预发布模式中被载入
|
||||
VITE_NODE_ENV = 'development'
|
||||
|
||||
# 公共基础路径, 详见: https://cn.vitejs.dev/guide/build.html#public-base-path
|
||||
VITE_BASE_URL = /
|
||||
|
||||
# base api url
|
||||
VITE_BASE_API_URL = 'https://custom-chart-pre-api.shiyue.com/'
|
||||
|
||||
VITE_DEBUG_MODE = true
|
||||
|
||||
VITE_PORT=10010
|
||||
|
||||
VITE_PLATFORM_URL = 'https://localhost:10010/'
|
||||
VITE_DESIGNER_URL = 'https://localhost:10011/'
|
||||
VITE_RENDERER_URL = 'https://localhost:10012/'
|
||||
VITE_V1_URL = 'https://localhost:10013/'
|
@ -1,4 +1,3 @@
|
||||
# 端口号
|
||||
VITE_PORT=10010
|
||||
|
||||
VITE_BASE=/
|
||||
|
@ -12,8 +12,8 @@
|
||||
"build:analyze": "vite build --mode analyze",
|
||||
"build:staging": "vite build --mode staging",
|
||||
"dev": "vite --mode development",
|
||||
"dev:staging": "vite --mode staging",
|
||||
"dev:prod": "vite --mode production",
|
||||
"dev:staging": "vite --mode dev-staging",
|
||||
"dev:prod": "vite --mode dev-production",
|
||||
"preview": "vite preview",
|
||||
"typecheck": "vue-tsc --noEmit --skipLibCheck"
|
||||
},
|
||||
|
@ -32,6 +32,7 @@ export default defineConfig(async ({ mode }) => {
|
||||
server: {
|
||||
http2: true,
|
||||
https: true,
|
||||
port: isDev ? Number(env.VITE_PORT) : undefined,
|
||||
proxy: {
|
||||
'/api': {
|
||||
changeOrigin: true,
|
||||
|
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",
|
||||
|
10
apps/y-code-v1/.env.dev-production
Normal file
10
apps/y-code-v1/.env.dev-production
Normal file
@ -0,0 +1,10 @@
|
||||
VITE_NODE_ENV = development
|
||||
|
||||
VITE_PORT = 10013
|
||||
|
||||
VITE_OA_BASEURL = https://oa.shiyuegame.com
|
||||
|
||||
VITE_YCODE_BASEURL = https://custom-chart-api.shiyuegame.com
|
||||
# VITE_YCODE_BASEURL = https://custom-chart-api.shiyuegame.com:19998
|
||||
|
||||
VITE_YCODE_BASEURL_FRONT = https://custom-chart.shiyuegame.com
|
9
apps/y-code-v1/.env.dev-staging
Normal file
9
apps/y-code-v1/.env.dev-staging
Normal file
@ -0,0 +1,9 @@
|
||||
VITE_NODE_ENV = development
|
||||
|
||||
VITE_PORT = 10013
|
||||
|
||||
VITE_OA_BASEURL = https://oa-pre.shiyue.com
|
||||
|
||||
VITE_YCODE_BASEURL = https://custom-chart-pre-api.shiyue.com
|
||||
|
||||
VITE_YCODE_BASEURL_FRONT = https://custom-chart.shiyue.com
|
@ -5,8 +5,8 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "cross-env farm start --mode development",
|
||||
"dev:staging": "cross-env farm start --mode staging",
|
||||
"dev:prod": "cross-env farm start --mode production",
|
||||
"dev:staging": "cross-env farm start --mode dev-staging",
|
||||
"dev:prod": "cross-env farm start --mode dev-production",
|
||||
"build": "cross-env farm build --mode production",
|
||||
"build:staging": "cross-env farm build --mode staging",
|
||||
"preview": "cross-env farm preview",
|
||||
|
Loading…
x
Reference in New Issue
Block a user