docs: add cloudflare deploy guide - #37
Open
losolio wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a dedicated Cloudflare deployment guide to the documentation, and links to it from the CLI docs so readers can follow a Cloudflare-specific walkthrough after generating dist/.
Changes:
- Add
docs/deployment/cloudflare.mdwith Cloudflare Pages + Wrangler instructions, CI notes, and a Workers alternative. - Link to the new Cloudflare deployment guide from
docs/cli.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/deployment/cloudflare.md | New Cloudflare deployment walkthrough (Pages, CI env vars, 404 fallback, Workers alternative). |
| docs/cli.md | Adds a pointer to the Cloudflare deployment guide from the “Build and deploy” section. |
Suppressed comments (2)
docs/deployment/cloudflare.md:16
- The “fast path” snippet is missing the build step;
wrangler pages deploy distwill fail ifdist/hasn’t been generated yet. Addingnpx lectio-docs buildmakes the snippet copy/pasteable.
npx wrangler login # first time only
npx wrangler pages deploy dist --project-name my-docs
docs/deployment/cloudflare.md:64
- The
wrangler.jsoncexample omitsmainand an assets binding; Wrangler configs typically requiremain, and a binding is needed if the Worker is responsible for serving assets. As written, readers may get a config that fails validation or can’t servedist/as intended.
{
"name": "my-docs",
"compatibility_date": "2026-08-02",
"assets": { "directory": "./dist", "not_found_handling": "404-page" }
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+8
to
+10
| `lectio build` leaves a fully static site in `./dist` — every page prerendered | ||
| to HTML, with the search index at `/search-index.json`. Nothing runs | ||
| server-side, so Cloudflare can serve it as plain static assets. |
Comment on lines
+55
to
+56
| Cloudflare now steers new projects toward Workers with static assets. It's the | ||
| same static `dist/`, plus a small config at the repo root: |
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.
No description provided.