AI Workflow ยท Portfolio

Recovering the Source Repo While Making pages.dev the Canonical URL

A deployment log about fixing an accidental read-only source repository state while moving Astro config, robots.txt, and sitemap.xml to the pages.dev canonical URL.

June 1, 2026

Trigger

The old github.io URL was still visible even though the current site is built from Astro and deployed to Cloudflare Pages. Keeping both URLs active made it easier for people and AI agents to confuse the source repository, generated output, and live deployment target.

Fix

  • Renamed the source repository to ytkim-astro-site and kept GitHub Pages disabled.
  • Recovered from an accidental archived=true state that made the source repository read-only.
  • Changed Astro site config, robots.txt, sitemap.xml, and README to use https://ytkim4558.pages.dev/.
  • Verified the Cloudflare Pages deployment and confirmed the github.io root was no longer serving the real site.

Rule

When retiring a legacy deployment URL, first identify whether it shares the same repository as the live source. Do not archive a repository that still needs to receive source commits.