vaw Wiki
Reading preferences
Text size

Cloudflare Pages

Build the vaw wiki from Markdown with Cloudflare Pages.

On this page

Cloudflare Pages#

Connect the aancw/vaw-wiki GitHub repository to Cloudflare Pages. Pages runs the build command on each push and uploads the selected output directory. See Cloudflare's Git integration guide and build configuration.

Use these settings:

Setting Value
Project name vaw-wiki
Production branch main
Framework preset None
Build command go run github.com/aancw/vaw@latest
Build output directory dist
Root directory / or blank

The command reads the site title, vault path, and output path from vaw.yaml; it needs no flags or extra environment variables. Go resolves @latest through its module services, whose metadata may take a little time to reflect a newly pushed commit. If a deployment immediately after a vaw update downloads an older pseudo-version, retry after the module metadata has refreshed. The output directory dist/ is separate from the source vault. Pages creates it during the build, so generated files are not committed to the repository.

Set the Pages build system to v3 or set GO_VERSION to 1.24.3; vaw requires Go 1.24 or newer. Check Cloudflare's build image documentation for current versions.

The command does not set site.base_url, so vaw omits the sitemap and RSS feed. Add a VAW_BASE_URL value when the canonical production URL is known. Preview deployments are public unless you restrict access in Cloudflare.

The build command has been verified on the vaw-wiki Pages project, including publishing the generated dist/ output. A newly pushed vaw commit may take a little time to appear through Go's module services; if a build downloads an older pseudo-version, retry after the metadata updates. When vaw publishes a stable release, you can pin it in the command, for example go run github.com/aancw/[email protected].

Linked notes

Related notes

Linked from

Search is ready.

    ↑ ↓ move · Enter open · Esc close

    Explore graph

    Open the graph to explore note relationships.