Skip to content

fix(gh-pages): add CNAME file to preserve custom domain on deploy#751

Merged
BYK merged 1 commit intomasterfrom
fix/gh-pages-cname
Feb 13, 2026
Merged

fix(gh-pages): add CNAME file to preserve custom domain on deploy#751
BYK merged 1 commit intomasterfrom
fix/gh-pages-cname

Conversation

@BYK
Copy link
Member

@BYK BYK commented Feb 13, 2026

Summary

  • Adds docs/public/CNAME with craft.sentry.dev so the custom domain survives gh-pages deployments

Problem

The gh-pages target runs git rm -rf . before extracting the new archive, which deletes any CNAME file previously on the branch. This causes craft.sentry.dev to stop resolving after each release.

Fix

Astro copies everything from public/ into the build output (dist/), which then gets zipped into gh-pages.zip. By placing the CNAME file in docs/public/, it's automatically included in every deployment archive. This is the same pattern used by getsentry/cli.

No changes to the gh-pages target code or .craft.yml are needed.

The gh-pages target runs `git rm -rf .` before extracting the new archive,
which deletes any CNAME file previously on the branch. By placing the CNAME
in `docs/public/`, Astro includes it in the build output and it ends up in
the gh-pages.zip artifact. This is the same pattern used by getsentry/cli.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-02-13 10:15 UTC

@BYK BYK marked this pull request as ready for review February 13, 2026 10:15
@BYK BYK merged commit 7e5a721 into master Feb 13, 2026
17 checks passed
@BYK BYK deleted the fix/gh-pages-cname branch February 13, 2026 10:15
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