also looking at this
Add BunPress guide and pre-E2E quality gates
#4
246 files
+1744
-64381
| @@ -721,23 +721,22 @@ export const tsCloud: TsCloudConfig = { | ||
| 721 | 721 | * to `/var/www/<siteName>`, served by the reverse proxy's `file_server`) |
| 722 | 722 | * - `bucket` → upload built `root` to object storage + CDN |
| 723 | 723 | * |
| 724 | * The static sites below (`docs`, `blog`, and external marketing sites) are the Hetzner | |
| 724 | * Static sites such as `docs` are the Hetzner | |
| 725 | 725 | * server-static replacement for the AWS website-hosting buckets in |
| 726 | 726 | * `infrastructure.storage` (see the supersede note there). `buddy deploy`'s |
| 727 | 727 | * Hetzner path (`deployAllComputeSites`) builds each site's `root`, tars it, |
| 728 | 728 | * and ships it to `/var/www/<siteName>` on the box. No new Hetzner buckets are |
| 729 | 729 | * created. Each site's key maps 1:1 to `/var/www/<key>`: |
| 730 | * - `docs` → /var/www/docs → served at /docs on stacksjs.com | |
| 731 | * - `blog` → /var/www/blog → served at /blog on stacksjs.com | |
| 730 | * - `docs` -> /var/www/docs -> served at /docs on loghq.org | |
| 732 | 731 | * |
| 733 | 732 | * The Stacks root is served by the `main` server app; do not add a second |
| 734 | * static `/` site for stacksjs.com or it will compete with the app route. | |
| 733 | * static `/` site for loghq.org or it will compete with the app route. | |
| 735 | 734 | */ |
| 736 | 735 | sites: { |
| 737 | 736 | // The loghq app — a Bun server (`buddy serve`) rendering the stx issues |
| 738 | 737 | // dashboard + serving the /errors ingest + /api issue routes on :3000, |
| 739 | // fronted by the reverse proxy on loghq.org. Single-purpose error-tracking | |
| 740 | // app: no docs/blog/marketing static sites from the scaffold template. | |
| 738 | // fronted by the reverse proxy on loghq.org, with BunPress documentation | |
| 739 | // mounted separately at /docs. | |
| 741 | 740 | // |
| 742 | 741 | // On the shared `stacks` box (attachTo) ts-cloud namespaces every install |
| 743 | 742 | // dir by project slug — this ships to /var/www/loghq-main via the |
| @@ -821,6 +820,15 @@ export const tsCloud: TsCloudConfig = { | ||
| 821 | 820 | env: { HOST: '127.0.0.1' }, |
| 822 | 821 | }, |
| 823 | 822 | |
| 823 | // BunPress documentation, built as static files and mounted under /docs. | |
| 824 | docs: { | |
| 825 | root: './dist/docs/.bunpress', | |
| 826 | path: '/docs', | |
| 827 | domain: env.APP_DOMAIN || 'loghq.org', | |
| 828 | deploy: 'server', | |
| 829 | build: 'PATH="$PWD/node_modules/.bin:$PATH" bun node_modules/@stacksjs/buddy/dist/cli.js build docs && test -d dist/docs/.bunpress', | |
| 830 | }, | |
| 831 | ||
| 824 | 832 | // www → apex redirect. |
| 825 | 833 | www: { domain: `www.${env.APP_DOMAIN || 'loghq.org'}`, redirect: `https://${env.APP_DOMAIN || 'loghq.org'}` }, |
| 826 | 834 | }, |