fix: copy webchat UI assets to dist/ during build

tsc only compiles .ts files — the webchat static files (HTML, CSS, JS)
in src/gateway/ui/ were never copied to dist/gateway/ui/, causing 404s
when running the production build via 'pnpm start'.
This commit is contained in:
William Valentin
2026-02-11 09:58:15 -08:00
parent 85d7a6bfec
commit 1a3ae3020f
+1 -1
View File
@@ -8,7 +8,7 @@
"flynn": "dist/cli/index.js" "flynn": "dist/cli/index.js"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc && cp -r src/gateway/ui dist/gateway/ui",
"dev": "tsx watch src/cli/index.ts -- start", "dev": "tsx watch src/cli/index.ts -- start",
"start": "node dist/cli/index.js start", "start": "node dist/cli/index.js start",
"tui": "node --no-deprecation --import tsx/esm src/cli/index.ts tui", "tui": "node --no-deprecation --import tsx/esm src/cli/index.ts tui",