121(新uat)环境配置
This commit is contained in:
parent
87f3d9a51a
commit
723ce7aa52
|
@ -6,13 +6,13 @@ VITE_PUBLIC_PATH = /
|
||||||
|
|
||||||
|
|
||||||
# 跨域代理,您可以配置多个 ,请注意,没有换行符
|
# 跨域代理,您可以配置多个 ,请注意,没有换行符
|
||||||
VITE_PROXY = [["/nursing-unit","http://localhost:8081/nursing-unit_001"],["/upload","http://localhost:3300/upload"]]
|
VITE_PROXY = [["/nursing-unit-001","http://localhost:8081/nursing-unit_001"],["/upload","http://localhost:3300/upload"]]
|
||||||
|
|
||||||
#后台接口全路径地址(必填)
|
#后台接口全路径地址(必填)
|
||||||
VITE_GLOB_DOMAIN_URL=http://localhost:8081/nursing-unit_001
|
VITE_GLOB_DOMAIN_URL=http://localhost:8081/nursing-unit_001
|
||||||
|
|
||||||
#后台接口父地址(必填)
|
#后台接口父地址(必填)
|
||||||
VITE_GLOB_API_URL=/nursing-unit
|
VITE_GLOB_API_URL=/nursing-unit-001
|
||||||
|
|
||||||
# 接口前缀
|
# 接口前缀
|
||||||
VITE_GLOB_API_URL_PREFIX=
|
VITE_GLOB_API_URL_PREFIX=
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
VITE_USE_MOCK = false
|
VITE_USE_MOCK = false
|
||||||
|
|
||||||
# 发布路径
|
# 发布路径
|
||||||
VITE_PUBLIC_PATH = /
|
VITE_PUBLIC_PATH = /nu001
|
||||||
|
|
||||||
# 是否启用gzip或brotli压缩
|
# 是否启用gzip或brotli压缩
|
||||||
# 选项值: gzip | brotli | none
|
# 选项值: gzip | brotli | none
|
||||||
|
@ -13,10 +13,10 @@ VITE_BUILD_COMPRESS = 'gzip'
|
||||||
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
||||||
|
|
||||||
#后台接口父地址(必填)
|
#后台接口父地址(必填)
|
||||||
VITE_GLOB_API_URL=/nursing-unit
|
VITE_GLOB_API_URL=/nursing-unit_001
|
||||||
|
|
||||||
#后台接口全路径地址(必填)
|
#后台接口全路径地址(必填)
|
||||||
VITE_GLOB_DOMAIN_URL=http://nursing-unit-system:8080/nursing-unit
|
VITE_GLOB_DOMAIN_URL=http://121.36.88.64/nursing-unit_001
|
||||||
|
|
||||||
# 接口父路径前缀
|
# 接口父路径前缀
|
||||||
VITE_GLOB_API_URL_PREFIX=
|
VITE_GLOB_API_URL_PREFIX=
|
||||||
|
|
|
@ -80,6 +80,9 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
port: VITE_PORT,
|
port: VITE_PORT,
|
||||||
// Load proxy configuration from .env
|
// Load proxy configuration from .env
|
||||||
proxy: createProxy(VITE_PROXY),
|
proxy: createProxy(VITE_PROXY),
|
||||||
|
// headers: {
|
||||||
|
// 'Content-Security-Policy': "default-src 'self'; script-src 'self' 'unsafe-inline'"
|
||||||
|
// },
|
||||||
// 合并 server 配置
|
// 合并 server 配置
|
||||||
...serverOptions,
|
...serverOptions,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue