Skip to content

chore(site): 舊頁 301 回埕+favicon(審查 P2) - #33

Open
Crystal32378 wants to merge 2 commits into
mainfrom
fable/p2-retire-legacy-pages
Open

Crystal32378 wants to merge 2 commits into
mainfrom
fable/p2-retire-legacy-pages

Conversation

@Crystal32378

Copy link
Copy Markdown
Owner

觀察(2026-09-14 線上走訪,已驗證)

  • /index.html 仍是舊版「數位籤詩宇宙」(emoji 神明卡、FUTURE FEATURES 列 AI 解籤)
  • /research/index.html 問卷 Q2 有「月老」、Q4 有「不相信 AI 解籤」
  • 每次載入 console 一條 favicon 404

修法

  • vercel.json:/index.html、/research、/research/、/research/index.html → 301 /(埕)。research/ 下的研究資料夾不受影響,仍可達(符合「公開結果」定調)
  • assets/favicon.svg 紙色底一橫墨線;paper/arrival.html head 加一行 <link rel="icon">
  • README 本機執行指令改指 paper/arrival.html

刻意未做

  • 沒刪 index.html:test-draw-pool.mjs T5「public page truth rules」仍讀它。真正的 public page 已是 paper/arrival.html,但 T5 的禁字表含「月老」,而埕裡月老是合法的「未落成之殿」fail-closed 設計。retarget T5 要先改契約,另開 PR
  • 沒刪問卷檔:Apps Script 端點仍在 research/google-apps-script.gs,若要重啟問卷,選項需改為現行三殿、刪 AI 解籤

驛證

四套測試全綠(arrival 36/sound 68/slip 14/pool 60)。301 行為需 Vercel preview deploy 才能驗,本機無法。

🤖 Generated with Claude Code

Crystal32378 and others added 2 commits September 18, 2026 12:49
線上同一主機仍可達兩個與現行產品矛盾的頁面:舊版「數位籤詩宇宙」emoji 神明卡(/index.html)
與研究問卷(/research/index.html,選項仍列月老、AI 解籤)。兩者可被索引,初訪者可能先撞到舊產品。

- vercel.json:/index.html、/research(/index.html) → 301 /
- assets/favicon.svg(紙色底、一橫墨線=「抽一」)+ arrival <link rel=icon>;消掉每次載入的 favicon 404
- README:本機執行改指 paper/arrival.html
- index.html 檔案本身保留:scripts/test-draw-pool.mjs T5 仍以它為 public-page 真相檢查對象;retarget 另議

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
福拆單後 #33 確定範圍:只退場公開路由,不刪 Apps Script/試算表/歷史回覆。
本次在 rebase 到 c26694b(含 #34 解曰層)後:

- vercel.json 由 routes[](status:301,filesystem 排序脆弱)改為現代 redirects/rewrites:
  - redirects:/index.html、/research、/research/、/research/index.html → /(permanent=308)
  - rewrites:/ → /paper/arrival.html(URL 不變,root 仍進 Arrival)
- scripts/test-routing.mjs(新):把新的 Vercel 路由真相變成可回歸的 15 項斷言
  (root=rewrite 非 redirect/四條 legacy 皆 permanent 到 //favicon 存在且被引用/
  解曰 guard·artifact·custody 不受影響且 content_version 仍綁定/index.html 與
  google-apps-script.gs 檔案保留=只退路由不刪資料)
- test-draw-pool T5 標題校正:index.html 現為「已退場的 legacy route(檔案保留)」,
  內容禁字檢查仍適用;路由真相移到 test-routing
- favicon.svg+arrival <link rel=icon>、README 指向 paper/arrival.html(沿用 #33 原提交)

未改:紙、draw pool、解曰三檔、綁定、聲音、Apps Script、試算表。
測試:routing 15/interp 29/arrival 36/sound 68/slip 14/pool 60 全綠。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Crystal32378
Crystal32378 force-pushed the fable/p2-retire-legacy-pages branch from db09656 to 27b0193 Compare September 18, 2026 04:51
@Crystal32378

Copy link
Copy Markdown
Owner Author

#33 收斂完成(福拆單範圍,未 merge、未 deploy)

已 rebase 到 c26694b(含 #34 解曰層),force-push(head 27b0193)。範圍:只退公開路由,不刪 Apps Script/試算表/歷史回覆。

變更

  • vercel.json:由 routes[](status:301,filesystem 排序脆弱)改為現代 redirects/rewrites
    • redirects(permanent: true ⇒ 308):/index.html、/research、/research/、/research/index.html → /
    • rewrites:/ → /paper/arrival.html(root 仍進 Arrival,URL 不變)
  • scripts/test-routing.mjs(新,15 項):新的路由真相變成可回歸斷言
  • test-draw-pool T5 標題校正:index.html 現為「已退場 route(檔案保留)」,內容禁字檢查仍適用
  • favicon.svg + arrival <link rel=icon>、README 指向 paper/arrival.html(沿用原提交)

驗收對照(福 5 點)

  1. / 仍進 Arrival — rewrites / → arrival,test-routing A 斷言 ✓
  2. /index.html 真永久轉址 Location:/ — config 為 permanent:true(308);live HTTP 未證,見下方
  3. favicon 200 — svg 在檔、arrival 引用,test-routing C ✓(live 待部署)
  4. 解曰 guard/artifact/custody 不受影響 — test-routing D:三檔在、content_version 仍綁定 ✓
  5. 測試更新為新路由真相 — test-routing 15 項+T5 校正 ✓

全綠:routing 15/interp 29/arrival 36/sound 68/slip 14/pool 60。

live 308 為何尚未證

要證實 HTTP 308 需要一個部署。福要求 production 不 deploy;我改試非 production 的 preview 來證,但 Vercel CLI token 已過期(約 6 小時前),preview 在 retrieving project 就失敗、零上傳、production 未動。取得 live 證明兩條路:重新 vercel login 後我跑一次 preview 貼 308 curl,或 merge 後 production 部署自然帶入(部署前需確認 token 有效)。

停在 #33,等福驗收。

This branch has not been deployed

No deployments
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