admin.xpcool.com/apps/web-tdesign/.env.production
夏犀麟 f8463e9f84 feat(other): 生产全量请求/响应加密拦截器
- crypto.ts 增 encryptPayload/decryptPayload(整体加密 + 会话密钥响应解密)
- request.ts 增 installCryptoInterceptors:请求整体加密、响应解密最先注册,
  requestClient 与 baseRequestClient 均生效,public-key 豁免
- auth/system 全量模式下直接提交明文密码由拦截器整体加密
- .env.production 开 VITE_GLOB_API_ENCRYPT=true(开发 false 保持仅密码加密)
2026-08-28 00:17:55 +08:00

23 lines
506 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

VITE_BASE=/
# 接口地址(同源相对路径,由 nginx 将 /api/service 反代到后端 10100
VITE_GLOB_API_URL=/api/service
# 是否开启压缩,可以设置为 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
# 全量请求/响应加密(与后端 encrypt.fullBody=true 配套)
VITE_GLOB_API_ENCRYPT=true