Appearance
Vectelle docs
Customer-facing docs site, built with VitePress. Intended for docs.vectelle.com.
bash
pnpm --filter @vectelle/docs dev # http://localhost:5173
pnpm --filter @vectelle/docs build # static site in apps/docs/.vitepress/dist
pnpm --filter @vectelle/docs preview # serve the built siteProduction URLs
The SDK's CDN URL and the ingest endpoint appear throughout the docs as https://cdn.vectelle.com/v1/vectelle.js and https://events.vectelle.com/v1/batch. They default to https://cdn.vectelle.com/v1/vectelle.js and https://events.vectelle.com/v1/batch; override them at build time, for example for staging:
bash
VECTELLE_CDN_URL=https://cdn.example.com/v1/vectelle.js \
VECTELLE_INGEST_URL=https://ingest.example.com/v1/batch \
pnpm --filter @vectelle/docs buildSingle source
reference/events.mdincludesdocs/event-specs.md.reference/http-api.mdincludes thepublicregion ofdocs/wire-format.md. The internal "Server-side processing" section stays out of the public site.
Edit those files at the repo root, not here.
Markdown and Biome
Biome's Markdown formatter breaks VitePress frontmatter and containers, so apps/docs/**/*.md is excluded in biome.json.
Deploying
Served by Cloudflare Workers static assets as the Worker vectelle-docs on https://docs.vectelle.com (wrangler.jsonc; the custom domain creates its own DNS record). public/_headers sets the security headers and long caching for /assets/*.
Workers Builds deploys on push to main (Cloudflare dashboard → Workers & Pages → vectelle-docs → Settings → Builds):
| Setting | Value |
|---|---|
| Root directory | /apps/docs |
| Build command | pnpm build |
| Deploy command | npx wrangler deploy |
| Include paths | apps/docs/**, docs/event-specs.md, docs/wire-format.md, pnpm-lock.yaml |
| Build variables | VECTELLE_CDN_URL, VECTELLE_INGEST_URL (when the hosts exist) |
Manual deploy: pnpm --filter @vectelle/docs deploy (builds, then wrangler deploy).