Deploy docs on Railway
This page is for maintaining docs.autlantic.com (Autlantic operators). Integrators do not need to deploy the docs site.
The site is a static VitePress build served with serve.
1. Railway service settings
- Connect the service to autlantic/payments-sdk (
main) - Service name:
@autlantic/docs(or any name you prefer) - Settings → Config file path:
railway.docs.toml - Root directory: leave empty (repo root)
- Custom domain:
docs.autlantic.com
2. Build & start
bash
pnpm install --frozen-lockfile
pnpm --filter @autlantic/docs build
# start: serve static files on $PORTNo database or worker needed.
3. Custom domain
- Railway service → Settings → Networking → Custom Domain
- Add
docs.autlantic.com - At your DNS host, add the CNAME Railway shows.
4. Health
Railway probes HTTP on $PORT. The serve process responds with 200 for static files.
Local dev
bash
pnpm --filter @autlantic/docs dev
pnpm --filter @autlantic/docs build
pnpm --filter @autlantic/docs previewUpdating content
Edit markdown under apps/docs/docs/, then push to the branch Railway watches (typically main).