step③ game-studio 联调(编译验证待 mini-desktop): - request.ts 注入 tenant-id:1;user.ts token 取 VITE_STUDIO_TOKEN(=test1) - vite.config.ts: VITE_API_BASE 非空则关 mock + 启动打印 baseURL/mock 状态 - runtimeApi.ts: 取包改委托 src/api/runtime.ts(带 base+token+tenant,修 Codex C3 裸 axios 同源) - inject.ts: manifestUrl resolve 到 VITE_API_BASE + 带鉴权头(修 Codex C4) - telemetry: 信封补 eventId(randomUUID)+ traceId 兜底非空;sendBeacon→fetch keepalive 带头(sendBeacon 不能带 Authorization/tenant) - Play.vue onTelemetry 白名单原样转发 like/share/play_end(修 Codex H8 吞事件) - 新增 game-studio/.env.staging + vite-env.d.ts;.gitignore 豁免 .env.staging(防 gitignore-swallows-frontend-source 同类坑) - 注:Feed.vue 互动经 buildEnvelope traceId 兜底覆盖,免改 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6 lines
351 B
Plaintext
6 lines
351 B
Plaintext
# game-studio 联调 env(vite --mode staging)。staging 后端在 mini-desktop。
|
||
# 非密钥:仅后端地址 + studio 登录态 token(后端可识别的固定测试态),故入库供 mini-desktop 克隆联调
|
||
# (根 .gitignore 已显式豁免 !game-studio/.env.staging)。
|
||
VITE_API_BASE=http://100.64.0.7:48080
|
||
VITE_STUDIO_TOKEN=test1
|