Repository navigation
Site: move to dz-delivery.younes-sarni.com (Cloudflare Pages) - #8
Merged
Merged
Conversation
- scripts/build-site.sh builds _site/ with only the public site files, plus robots.txt and a sitemap.xml whose lastmod dates come from git. - _headers keeps *.pages.dev deployments out of search engines. - Canonical, Open Graph, JSON-LD, README and package homepage URLs now point to https://dz-delivery.younes-sarni.com/. - Shorter home page <title>. - CI builds the site and fails if the old GitHub Pages URL remains. Refs #7 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
All reported issues were addressed across 19 files
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Turn on auto-fix | Re-trigger cubic
Deploying dz-delivery with
|
| Latest commit: |
feb4787
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0decfa69.dz-delivery.pages.dev |
| Branch Preview URL: | https://seo-cloudflare-pages.dz-delivery.pages.dev |
…reliably. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…age. Co-Authored-By: Claude Opus 5.5 <[email protected]>
11 of 25 tasks
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.
Part of #7 (domain and hosting section, plus quick fixes).
Changes
scripts/build-site.sh: builds_site/with only the public site (home page, carrier folders,assets/,_headers). It also generatesrobots.txtandsitemap.xml, withlastmodtaken from each page's last commit. The staticsitemap.xmlis removed._headers:X-Robots-Tag: noindexon*.pages.dev(production alias and previews), so only the custom domain gets indexed.canonical,og:url,og:image, JSON-LD, sitemap, READMEs andhomepageinpackage.jsonandcomposer.jsonnow point tohttps://dz-delivery.younes-sarni.com/.<title>shortened to about 55 characters.sitejob that builds the site and fails ifdeveloping-off.github.iois still in the output.Before merging
main, build commandsh scripts/build-site.sh, output directory_site.dz-delivery.younes-sarni.comas a custom domain on the Pages project.https://dz-delivery.younes-sarni.com/loads (a preview of this PR works too).Do not merge before the domain is live, or the canonicals will point to a page that does not exist.
After merging
https://dz-delivery.younes-sarni.com/sitemap.xml.gh repo edit --homepage https://dz-delivery.younes-sarni.com/homepageon npm and Packagist updates with the next release.🤖 Generated with Claude Code
Summary by cubic
Moves the public site from GitHub Pages to Cloudflare Pages on the custom domain
dz-delivery.younes-sarni.com, and re-points every canonical, Open Graph, JSON-LD, README and package-homepage URL at the new domain. This covers the domain-and-hosting part of #7.Only the custom domain gets indexed: a
_headersrule returnsX-Robots-Tag: noindexon all*.pages.devdeployments and previews.scripts/build-site.shassembles_site/and generatesrobots.txtandsitemap.xmlwithlastmoddates taken from git history; the staticsitemap.xmlis removed. A new404.htmlmakes unknown URLs return 404 instead of the home page, andSITE_URLis validated as an origin at build time. Finally, the home page<title>is shortened, and CI now builds the site and fails if the old GitHub Pages URL still appears in the output.Rollout
mainwith build commandsh scripts/build-site.shand output directory_site, then add the custom domain before merging — merging early makes the canonicals point at a page that does not exist.https://dz-delivery.younes-sarni.com/sitemap.xmlto Search Console and update the repository homepage.Written for commit feb4787. Summary will update on new commits.