serve the site from php-debugger.dev - #33
Merged
Merged
Conversation
|
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.
Prepares the repo for serving the site at
php-debugger.devas a GitHub Pages custom domain.static/CNAME— holds the domain so Docusaurus copies it intobuild/on every build. This has to live in the repo rather than being set only through the Pages UI: the deploy workflow usesJamesIves/github-pages-deploy-actionwithclean-exclude: pr-preview, so each deploy replaces everything else ongh-pages. A UI-createdCNAMEwould be deleted on the next merge and the custom domain would silently unset itself.url—https://php-debugger.github.io→https://php-debugger.dev, so canonical tags, Open Graph URLs and the sitemap point at the real home.baseUrlis unchanged, andorganizationName/projectNamestay as they are since they identify the repo for deployment rather than the served URL.Verified in the built output:
build/CNAMEpresent, canonical andog:urlon the new domain, sitemap entries updated, and nophp-debugger.github.ioleft in the built HTML.Safe to merge before any DNS change — the file has no effect until GitHub's custom domain setting matches it. It should be merged before setting the custom domain in the Pages UI, for the reason above.
Remaining steps, outside this repo:
CNAME www → php-debugger.github.iophp-debugger.dev, then Enforce HTTPS once the certificate appears