ReviewOS

also looking at this

stacks/ts-analytics

feat(stx): one-line stx integration (plugins: ['@stacksjs/ts-analytics']) + fix library build

#123
Closed glennmichael123 wants to merge feat/stx-integration into main
11 files +331 -13
preview.tsmodified+4-3
Changes to preview.ts
@@ -1,13 +1,14 @@
11#!/usr/bin/env bun
22/**
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.)
56 *
67 * Usage: bun run preview
78 */
89
910const port = Number(process.argv[2]) || 3001
10const distDir = 'dist'
11const distDir = 'dist-site'
1112
1213Bun.serve({
1314 port,