also looking at this
feat(stx): one-line stx integration (plugins: ['@stacksjs/ts-analytics']) + fix library build
#123
11 files
+331
-13
| @@ -1,13 +1,14 @@ | ||
| 1 | 1 | #!/usr/bin/env bun |
| 2 | 2 | /** |
| 3 | * Serves the static `dist/` build locally for testing before deploying | |
| 4 | * to Netlify / Vercel / S3. Plain file server, no processing. | |
| 3 | * Serves the static site build (`dist-site/`, produced by `bun run build:site`) | |
| 4 | * locally for testing before deploying to Netlify / Vercel / S3. Plain file | |
| 5 | * server, no processing. (The npm library build lives in `dist/` — see build.ts.) | |
| 5 | 6 | * |
| 6 | 7 | * Usage: bun run preview |
| 7 | 8 | */ |
| 8 | 9 | |
| 9 | 10 | const port = Number(process.argv[2]) || 3001 |
| 10 | const distDir = 'dist' | |
| 11 | const distDir = 'dist-site' | |
| 11 | 12 | |
| 12 | 13 | Bun.serve({ |
| 13 | 14 | port, |