docs(v1.2): README/CONTRIBUTING に 404 ページの動作確認セクション追加(Issue #198 補完)#205
Merged
Conversation
PR #199 / #200 で `vite.config.ts` の preview-404-fallback plugin は実装済 だったが、Issue #198 の完了条件「README または CONTRIBUTING に 404 動作明記」 が未完遂(PR body には記載があったが実 commit に含まれていなかった partial misreport)のため補完。 ## 変更内容 - README.md: 「ビルドと納品」末尾に「404 ページの動作確認」セクション追加。 本番ホスティング(Cloudflare Pages / Netlify / Vercel / GitHub Pages 共通) + ローカル preview + 直接アクセスの 3 確認パターンを記載。 - CONTRIBUTING.md: 「基本フロー」に `pnpm run preview` 動作確認手順を追加し、 README の該当節へリンク。 - CHANGELOG.md: Unreleased Added に preview-404-fallback plugin の動作を 追記(PR #199 / #200 で更新漏れ)。 ## 実機検証 `npm run build && npm run preview` 後の動作確認: | URL | 期待 | 実測 | |-----|------|------| | `/` | 200 | ✅ 200 | | `/privacy/` | 200 | ✅ 200 | | `/nonexistent` | 404 | ✅ 404 | | `/404.html`(直接) | 200 | ✅ 200 | | `/assets/notfound.css` | 404 | ✅ 404 | Closes #198
Deploying starter with
|
| Latest commit: |
cf12fd0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://fb7fb078.starter-20t.pages.dev |
| Branch Preview URL: | https://docs-issue-198-404-readme-co.starter-20t.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Issue #198「preview server 404 fallback 追加 + 404 動作の README 明記」の README/CONTRIBUTING ドキュメント補完 PR。
vite.config.tsのpreview-404-fallbackplugin 実装は PR #199(feat)+ PR #200(hotfix)で v1.2 にマージ済。一方で Issue #198 の完了条件のうち 「README または CONTRIBUTING に 404 動作明記」が未完遂 だった(PR #199 body には記載があったが実 commit には含まれていない partial misreport パターン)ため、本 PR で補完する。検出経緯
vite.config.tsのみ(gh pr view 199 --json filesで確認)state: OPENのまま残っており、ドキュメント補完が必要と判定変更内容
README.md「ビルドと納品」セクション末尾に 「404 ページの動作確認」サブセクション を追加:
404.htmlを自動配信)vite.config.tsのpreview-404-fallbackplugin が再現)/404.htmlでデザイン確認)CONTRIBUTING.md「基本フロー」に
pnpm run previewでの動作確認手順を追加し、README の「404 ページの動作確認」セクションへ相対リンク。CHANGELOG.md## [Unreleased]の Added に preview-404-fallback plugin の動作を追記(PR #199 / #200 で更新漏れていた分の補完)。動作確認
npm run build && npm run preview後://privacy//nonexistent/nonexistent/deep/404.html(直接)/assets/notfound.csspnpm run build✅ PASSAR レポート
スコープ
チェック結果
404.html自動配信は公式仕様(一次ソース確認済)vite.config.tsの plugin 名preview-404-fallbackを文書側で正確に参照副次的 bug 検出
関連
Closes #198
🤖 Generated with Claude Code