vaw Wiki
Reading preferences
Text size

Static hosting

On this page

Static hosting#

Build with vaw build, then upload the contents of the configured output directory. Each route is an index.html document inside its folder. Configure directory index serving and a real 404 response; no SPA fallback or backend is needed.

For a subpath, set site.base_url: https://example.com/knowledge/ before building and serve the output at /knowledge/. Test direct navigation and refresh on nested routes. Use the matching trailing slash convention. A static file browser using file:// is not equivalent to HTTP hosting.

The generated _headers file is a recommendation for compatible hosts. Nginx, Caddy and S3 require equivalent host configuration. Inspect actual deployed responses. A content security policy does not make a private URL safe to publish.

GitHub Pages, Netlify, Vercel and ordinary servers can serve this output; their actual deployments have not been verified here. Deployment workflows and pinned bootstrap are Phase 2 deliverables. Do not commit dist/ to the content repository by default.

Linked notes

Related notes

Linked from

Search is ready.

    ↑ ↓ move · Enter open · Esc close

    Explore graph

    Open the graph to explore note relationships.