Skip to content

config: Pages primary + Netlify optional (fix canonical URLs)#2

Merged
flippelt merged 1 commit into
mainfrom
chore/dual-deploy
Jun 4, 2026
Merged

config: Pages primary + Netlify optional (fix canonical URLs)#2
flippelt merged 1 commit into
mainfrom
chore/dual-deploy

Conversation

@flippelt

@flippelt flippelt commented Jun 4, 2026

Copy link
Copy Markdown
Owner

GitHub Pages stays the primary publish target; Netlify becomes a correctly-configured optional target.

  • astro.config: canonical resolves SITE → Netlify URL (auto-injected) → fallback.
  • deploy.yml: sets SITE=https://flippelt.github.io/campaign-codex (Pages canonical was wrongly defaulting to contracodex.netlify.app).
  • netlify.toml: documented as optional root-base target.

Verified: Pages build → canonical flippelt.github.io/campaign-codex; Netlify-sim → campaign-codex.netlify.app.

🤖 Generated with Claude Code

…l target

astro.config: canonical site now resolves SITE -> Netlify's auto-injected URL -> fallback, so Netlify deploys get the correct canonical with zero config. deploy.yml: set SITE=https://flippelt.github.io/campaign-codex so the Pages site's canonical/OG/sitemap point at the Pages URL (previously defaulted to contracodex.netlify.app). netlify.toml: document it as the optional root-base target; Pages stays primary. Verified both build scenarios.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@flippelt flippelt merged commit d61ab51 into main Jun 4, 2026
1 check passed
@flippelt flippelt deleted the chore/dual-deploy branch June 4, 2026 17:33
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