chore: 官网 site_id 写入 .env.example 与 .env.production(私人仓库)

Made-with: Cursor
This commit is contained in:
whm
2026-03-21 21:31:06 +08:00
parent f4e51165a7
commit 0896bd3bab
3 changed files with 10 additions and 8 deletions

View File

@@ -10,5 +10,5 @@ GIN_MODE=release
ALLOWED_ORIGINS=https://yuheng.yuxindazhineng.com ALLOWED_ORIGINS=https://yuheng.yuxindazhineng.com
# 部署时自动导入「视频发布」到 data/uploads + site_assetspull-and-restart / restart 在 compose up 后执行) # 部署时自动导入「视频发布」到 data/uploads + site_assetspull-and-restart / restart 在 compose up 后执行)
# 官网站点 MongoDB _id与 /api/web/routes 返回的 site_id 一致);留空则跳过 # 官网站点 MongoDB _id与 /api/web/routes 的 site_id 一致);私人仓库已填官网默认值,多站请改
# YH_IMPORT_PROMOTION_SITE_ID= YH_IMPORT_PROMOTION_SITE_ID=69ba1f1f41aeb82acfd609ef

View File

@@ -3,6 +3,7 @@
VITE_APP_DOMAIN=https://yuheng.yuxindazhineng.com VITE_APP_DOMAIN=https://yuheng.yuxindazhineng.com
VITE_API_BASE= VITE_API_BASE=
# 可选:与 Mongo 站点 _id 一致;静态 /promotion 缺文件时用于 promotion-media 回退(见 promotionVideos.js # 与 Mongo 站点 _id 一致;生产见 .env.production 已填官网默认值
# VITE_DEFAULT_SITE_ID=69ba1f1f41aeb82acfd609ef VITE_DEFAULT_SITE_ID=69ba1f1f41aeb82acfd609ef
# 仅走 API、跳过静态探测(无 Network 404 噪音VITE_PROMOTION_API_ONLY=true # 仅走 API、跳过静态探测:生产默认同 .env.production
# VITE_PROMOTION_API_ONLY=true

View File

@@ -4,6 +4,7 @@
VITE_APP_DOMAIN=https://yuheng.yuxindazhineng.com VITE_APP_DOMAIN=https://yuheng.yuxindazhineng.com
# 与官网同域,接口走 /api留空即可 # 与官网同域,接口走 /api留空即可
VITE_API_BASE= VITE_API_BASE=
# 可选:填官网 Mongo site_id,静态 /promotion 无视频时强制走 promotion-media 回退 # 官网 Mongo site_id(私人仓库默认与 server/.env.example 一致)
# VITE_DEFAULT_SITE_ID= VITE_DEFAULT_SITE_ID=69ba1f1f41aeb82acfd609ef
# 素材只在上传目录、不想探测静态时VITE_PROMOTION_API_ONLY=true # 素材走 promotion-media API减少静态探测与 404
VITE_PROMOTION_API_ONLY=true