Skip to content

[bug] Dockerfile 缺 ARG VITE_SITE_URL:#613 環境驅動 manifest 在 Zeabur multi-stage 建置不生效 #682

Description

@s123104

摘要

Dockerfile builder stage 未宣告 ARG/ENV VITE_SITE_URL——Zeabur 服務層設定的環境變數不會進入 vite build 環境,#613 的 manifest 環境驅動修正實際斷鏈:staging manifest start_url/scope 仍指向正式站(QA-I D7 現象的完整根因鏈)。正式站不受影響(預設值即正確)。

背景/證據

Docker 配置稽核 F1(2026-07-08,已依 Zeabur 官方文件查證 multi-stage 注入語意);關聯 #602/#613、QA-I D7。

影響

  • staging PWA 無法正確安裝(start_url ignored 警告);使用者在 Zeabur 設好環境變數也不會生效

範圍

  • Dockerfile builder stage 補 ARG VITE_SITE_URL+ENV 傳遞;順手清理稽核發現的 git fallback 死碼與 2 張誤入庫 QA 截圖(repo 衛生)

驗收標準

  • 本地 docker build --build-arg VITE_SITE_URL=https://ratewise-staging.zeabur.app/ratewise/ 產出 manifest start_url 指向 staging(build 產物驗證)
  • 正式站預設行為零變化;QA 截圖出庫+gitignore 補防

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingseverity:p1High-priority work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions