From 1a3ae3020fd9429f1fbe312eca1bafc7cc8e3b03 Mon Sep 17 00:00:00 2001 From: William Valentin Date: Wed, 11 Feb 2026 09:58:15 -0800 Subject: [PATCH] fix: copy webchat UI assets to dist/ during build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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'. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a965a9c..f92f006 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "flynn": "dist/cli/index.js" }, "scripts": { - "build": "tsc", + "build": "tsc && cp -r src/gateway/ui dist/gateway/ui", "dev": "tsx watch src/cli/index.ts -- start", "start": "node dist/cli/index.js start", "tui": "node --no-deprecation --import tsx/esm src/cli/index.ts tui",