Repository navigation
SWF(refactor): 本番サイト URL の定義を astro.config.mjs の site に一本化 - #815
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
blog | 46d99bb | Commit Preview URL Branch Preview URL |
Nov 20 2026, 03:45 AM |
QA: production URL parity — PASSCompared this PR (46d99bb) against its merge-base with main (e693614).
Note: articles have no Side-by-side browser check (left = main, right = PR): |
Summary
本番サイトの URL を
astro.config.mjsのsiteだけで定義し、src/config.jsonのurlとpublic/robots.txtに重複していたhttps://sur33.comをなくしました。ビルド結果のdist/は変わりません。BaseLayout.astro:og:imageをnew URL(ogimage || config.ogImage, Astro.site ?? Astro.url.origin)で組み立てます。Astro.siteが無いのは Container API で描画するときだけなので、そのときはリクエストの origin を使います。rss.xml.ts:config.urlをimport.meta.env.SITEに置き換えました。public/robots.txt→src/pages/robots.txt.ts: Astro ドキュメントの方法に沿って、siteから Sitemap の URL を作るエンドポイントにしました。tests/e2e/specs/rss.spec.ts: 期待値の本番 URL をconfig.urlから読まず、テスト内に直接書くようにしました。確認
main とこのブランチで
pnpm run build:ciを実行し、dist/を比べました。スタブなしのビルドでは 8 行の差分が出ました。どれもビルド時に取得するリンクカードの画像とマークアップの差分で、この変更とは関係ありません。
試すコマンド:
pnpm run build:ci && cat dist/robots.txt画面での確認は、このあと QA Engineer に依頼します。
Implemented in session Define production site URL in one place
Review with Devin · Open in Devin Desktop