Skip to content

Document campaign hosting on Cloudflare Workers, Netlify and Vercel - #76

Open
next-devin wants to merge 7 commits into
mainfrom
docs/campaign-hosting
Open

next-devin wants to merge 7 commits into
mainfrom
docs/campaign-hosting

Conversation

@next-devin

@next-devin next-devin commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Adds Page Kit deployment guides for Cloudflare Workers, Netlify and Vercel, with shared preview, domain authorization and launch checks. Corrects the GitHub Pages ecommerce recommendation.

Markup passes. Local validation reported existing date-format errors in tracking and capability metadata and unrelated reference-link errors. No host deployment was performed.

@kilo-code-bot

kilo-code-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Reviewed the incremental commit a71bae9 (Netlify build-command guidance). The previous review's finding — the redirect section telling readers to use a build command that contradicted the import step — is resolved by the new conditional wording in step 3. One residual gap remains on the redirects paragraph.

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
content/docs/campaigns/hosting/netlify.mdx 24 The paragraph says step 3 copies _redirects into _site/, but step 3 keeps the plain npm run build unless the campaign was already known to use redirect rules, so a reader who adds _redirects at this section still deploys without it.
Files Reviewed (1 file)
  • content/docs/campaigns/hosting/netlify.mdx - 1 issue

Fix these issues in Kilo Cloud

Previous Review Summaries (5 snapshots, latest commit 1dfef14)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 1dfef14)

Status: 1 Issue Found | Recommendation: Address before merge

Reviewed the incremental commit 1dfef14 (Netlify _redirects build-command change) on top of the previously reviewed 33a7606. The earlier findings are resolved (the deleted cloudflare-pages guide is fully replaced, and the hub now routes Render and other hosts to the shared steps), so only the new change is reported below.

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
content/docs/campaigns/hosting/netlify.mdx 24 The new build command npm run build && cp _redirects _site/_redirects conflicts with the import step's npm run build, so readers who set the command from step 3 will deploy builds without _redirects.
Files Reviewed (1 file)
  • content/docs/campaigns/hosting/netlify.mdx - 1 issue

Previous review (commit 33a7606)

Status: No Issues Found | Recommendation: Merge

Checked the incremental commit 33a7606 (previous full review at 3a518f8): the Pages recipe was replaced by a Workers recipe, and every cloudflare-pages reference was updated across the campaigns hub, hosting meta.json, the campaigns index and Page Kit. A repo-wide search finds no remaining cloudflare-pages links, so the new content/docs/campaigns/hosting/meta.json entry, the hub sentence, and the campaigns/index.mdx headings/link all resolve to the new page.

Also verified on current HEAD:

  • cloudflare-workers.mdx links to /docs/campaigns/hosting#verify-the-preview and #launch-and-recover, and both headings exist in hosting/index.mdx (lines 13 and 19).
  • The _redirects guidance tells readers to commit the file and copy it into _site/ during the build, so it survives clean CI builds; the earlier _redirects findings stay resolved.
  • The frontmatter (title, description, audience), meta.json entries, and internal link targets are valid; the hosting section is new in this PR, so removing cloudflare-pages does not orphan any previously published URL.
  • Netlify and Vercel import sections keep the build command npm run build and output _site, consistent with the shared "Prepare the build" section, and correctly warn that netlify.toml / vercel.json overrides take precedence.
Files Reviewed (7 files)
  • content/docs/campaigns/hosting/cloudflare-workers.mdx (new; replaces deleted cloudflare-pages.mdx)
  • content/docs/campaigns/hosting/index.mdx
  • content/docs/campaigns/hosting/meta.json
  • content/docs/campaigns/hosting/netlify.mdx
  • content/docs/campaigns/hosting/vercel.mdx
  • content/docs/campaigns/index.mdx
  • content/docs/campaigns/page-kit.mdx

The earlier inline comments are outdated on this HEAD (line: null), including the Workers link suggestion, which is resolved by routing the hub to the new Workers recipe.

Previous review (commit 3a518f8)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
content/docs/campaigns/hosting/index.mdx 7 Link labeled "Workers with static assets" points to the Pages getting-started guide; the Workers static-assets URL is used only on the Pages recipe page
Files Reviewed (2 files)
  • content/docs/campaigns/hosting/cloudflare-pages.mdx - no issues
  • content/docs/campaigns/hosting/index.mdx - 1 suggestion

Verified on the incremental commit (3a518f8): the new Cloudflare framing paragraph correctly separates Workers static assets from the Pages recipe and both external URLs are the real Cloudflare Pages and Workers static-assets docs paths; the rewritten Pages steps match the current dashboard flow (Create application → Pages → Git import → Begin setup), keep npm run build with _site as the output directory, and preserve the nested-project root-directory guidance. Because the dashboard label has drifted between Cloudflare guides, step 2 states both names rather than picking one. The prior Render gap and _redirects build-copy findings remain resolved in current code, and their earlier inline comments are outdated on this HEAD.

Fix these issues in Kilo Cloud

Previous review (commit d43b403)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • content/docs/campaigns/hosting/cloudflare-pages.mdx
  • content/docs/campaigns/hosting/index.mdx
  • content/docs/campaigns/hosting/netlify.mdx

Verified on the incremental commit: the _redirects guidance now commits the file to the build directory and copies it into _site/ after npm run build, which matches how Cloudflare Pages and Netlify read _redirects from the publish/output root and preserves rules across clean builds; the hosting hub now routes Render and other static hosts to the shared build, preview and launch sections, and those sections are host-agnostic (host preview URL, exact Development hostname, Production switch on launch), so the earlier Render gap is closed.

Previous review (commit 590eb70)

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 3
Issue Details (click to expand)

SUGGESTION

File Line Issue
content/docs/campaigns/hosting/index.mdx 7 Host hub omits Render while content/docs/campaigns/index.mdx still recommends it, leaving Render readers without preview/domain/launch steps
content/docs/campaigns/hosting/netlify.mdx 19 _redirects guidance does not say the file must live in source and be copied into _site/, so it is missing from clean CI builds
content/docs/campaigns/hosting/cloudflare-pages.mdx 19 Same gap: hand-placed _redirects in generated _site/ will not be deployed by a clean host build
Files Reviewed (8 files)
  • content/docs/campaigns/hosting/cloudflare-pages.mdx - 1 suggestion
  • content/docs/campaigns/hosting/index.mdx - 1 suggestion
  • content/docs/campaigns/hosting/meta.json - no issues
  • content/docs/campaigns/hosting/netlify.mdx - 1 suggestion
  • content/docs/campaigns/hosting/vercel.mdx - no issues
  • content/docs/campaigns/index.mdx - no issues (Render section is pre-existing)
  • content/docs/campaigns/meta.json - no issues
  • content/docs/campaigns/page-kit.mdx - no issues

Verified: internal links and fragments (/docs/campaigns/hosting, #verify-the-preview, #launch-and-recover, /docs/campaigns#domains, /docs/campaigns/tracking/testing-and-troubleshooting, /docs/testing) resolve to existing pages/headings; build command, _site output, CPK_ENV, and Development/Production domain semantics match the existing docs; the GitHub Pages commercial-use correction matches GitHub's usage limits.

Fix these issues in Kilo Cloud


Reviewed by deepseek-v4.1-flash-1017 · Input: 24.7K · Output: 9K · Cached: 572K

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
developer-docs a71bae9 Commit Preview URL

Branch Preview URL
Nov 26 2026, 10:37 AM

@next-devin next-devin changed the title Document campaign hosting on Cloudflare Pages, Netlify and Vercel Document campaign hosting on Cloudflare Workers, Netlify and Vercel Nov 18, 2026
@next-devin

Copy link
Copy Markdown
Contributor Author

@kilo-code-bot review


In Domain management, add the campaign hostname as a production domain. Apply the DNS record Netlify shows and check certificate provisioning.

Commit `_redirects` alongside package.json. The build command from step 3 copies it into `_site/`, so each deployment includes the rules. For a moved ad path, a rule such as `/products/old-name /spring-offer/landing/ 301` redirects that path. Test with the actual ad parameters.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: The copy is still conditional on the build command chosen at step 3

This line says the build command from step 3 copies _redirects into _site/, but step 3 keeps the plain npm run build for any campaign that was not already known to use redirect rules. A reader who imports first and only adds _redirects when they reach this section still deploys with npm run build, so the file never reaches _site/ and moved ad paths 404 after the first automated deploy. Tell them to switch the build command (or the netlify.toml build command) to include the copy at the point where the rules are added.

Suggested change
Commit `_redirects` alongside package.json. The build command from step 3 copies it into `_site/`, so each deployment includes the rules. For a moved ad path, a rule such as `/products/old-name /spring-offer/landing/ 301` redirects that path. Test with the actual ad parameters.
Commit `_redirects` alongside package.json. If step 3 used the plain `npm run build`, change the build command (or the `netlify.toml` build command) to `npm run build && cp _redirects _site/_redirects` so each deployment includes the rules. For a moved ad path, a rule such as `/products/old-name /spring-offer/landing/ 301` redirects that path. Test with the actual ad parameters.

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