Skip to content

部署寫成實際的那一個:Cloudflare Pages,從 main - #41

Merged
hoshimoe merged 2 commits into
mainfrom
docs/deploy-path
Sep 1, 2026
Merged

部署寫成實際的那一個:Cloudflare Pages,從 main#41
hoshimoe merged 2 commits into
mainfrom
docs/deploy-path

Conversation

@hoshimoe

@hoshimoe hoshimoe commented Sep 1, 2026

Copy link
Copy Markdown
Member

## 部署 原本寫著 dist/ 「直接由 nginx 服務」。那是錯的,而且錯得會主動
誤導:nginx 把人推向節點——去查 hoshi-deploy 的 inventory、查 vhost、查 origin
憑證的 SAN——而正確答案是那條路上從頭到尾沒有 nginx。

實際的形狀:純靜態站,推上 main 之後由 Cloudflare Pages 自己建置並上線。

刪掉 release

那份四行的 crib 教人推 production 分支:

git switch production
git merge --ff-only main
git push
git switch main

production 早就不存在了git ls-remote --heads origin 只有 main)。
最初確實設過那條分支,release 是為它加的;後來發現沒必要,分支撤掉、
檔案留著。照著它做的第一行就會失敗。

其餘

  • wrangler.jsoncPages 的建置/部署步驟在讀的,本機用不到——
    所以 wrangler 不在 dependencies、也沒有 deploy script。檔頭加了註解。
  • 這個站不落在任何節點上,所以它不在 inventory、origin 憑證的 SAN 也沒有
    hoshivel.com——那是對的,不是漏掉。
  • 「不得加入 SSR adapter/server 輸出/Node runtime」那條保留並補上理由:
    Pages 服務的是純靜態檔。

驗證:hoshi test 通過。

@hoshimoe
hoshimoe merged commit d4e3285 into main Sep 1, 2026
6 checks passed
@hoshimoe
hoshimoe deleted the docs/deploy-path branch September 1, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant