Repository navigation
Site: Cloudflare Pages, a /guides page by library, team roles - #4
Merged
Merged
Conversation
The publish job deploys site/out to the Cloudflare Pages project brazilian-utils-docs (production branch main) and SITE_URL defaults to https://brazilian-utils.com.br. site / check deploys each same-repo PR to the branch pr-<number> and links it in one PR comment. SITE_PREVIEW=true replaces the VERCEL checks (root base path, noindex). public/_headers keeps the security headers and public/_redirects sends the pages of the old JavaScript site to their new places. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… first deploy Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
/guides lists every guide under the library that publishes it, and the header links there. In the sidebar the overview comes first, then a folder per library with guides: JavaScript today, any other library as soon as it declares site.usage.guides. The page is in the sitemap and the search. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
…ides `order` (default 0) sorts the guides of a library, then the file name: the JavaScript migration guide uses order: 1 to come after the others. Documented in the usage files page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
This was referenced Oct 9, 2026
Closed
…6.0.0–16.3.7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
|
Preview: https://pr-4.brazilian-utils-docs.pages.dev ( |
…iles next to the guides Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu
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.
One PR for everything in flight on the site.
Cloudflare Pages instead of GitHub Pages and Vercel
conformance.ymldeployssite/outto the Cloudflare Pages projectbrazilian-utils-docs, production branchmain.SITE_URLdefaults tohttps://brazilian-utils.com.br(domain root, no base path). The first deploy creates the project.site-check.ymldeploys each same-repo PR to the Pages branchpr-<number>and keeps one PR comment with the link. Fork PRs get no preview (no secrets).vercel.jsonis gone;SITE_PREVIEW=truereplaces theVERCELchecks (root base path,noindexmeta). Cloudflare addsX-Robots-Tag: noindexto previews, and_headersadds it to the productionpages.devaddress.site/public/_redirectssends the pages of the old JavaScript site at brazilian-utils.com.br to where they are now, including/migration-v1-to-v2→ the JavaScript migration guide.Guides by library (was #5)
/guidespage (en, pt-BR), linked from the header: every guide under the library that publishes it.orderamong its library's guides (docs: move the v1 to v2 migration guide into the guides javascript#626 uses it for the migration guide).Team roles (was #6)
Before merging
Secrets
CLOUDFLARE_API_TOKEN(Cloudflare Pages: Edit) andCLOUDFLARE_ACCOUNT_ID(set), variablePUBLISH_SITE=true. Until the token exists, the preview step fails.Checked locally
check:i18n --strict,lint --max-warnings 0,build,typecheck, actionlint,npm test(the 3 failures need the Python/Go/Rust toolchains and fail onmaintoo). Production build: nonoindex, canonicalhttps://brazilian-utils.com.br/;SITE_PREVIEW=truebuild:noindexmeta,robots.txtwithout sitemap.🤖 Generated with Claude Code
https://claude.ai/code/session_01RaUEDkvXY8rVWTJG2GKfhu