Skip to content

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 site

Production 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 build

Single source ​

  • reference/events.md includes docs/event-specs.md.
  • reference/http-api.md includes the public region of docs/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):

SettingValue
Root directory/apps/docs
Build commandpnpm build
Deploy commandnpx wrangler deploy
Include pathsapps/docs/**, docs/event-specs.md, docs/wire-format.md, pnpm-lock.yaml
Build variablesVECTELLE_CDN_URL, VECTELLE_INGEST_URL (when the hosts exist)

Manual deploy: pnpm --filter @vectelle/docs deploy (builds, then wrangler deploy).