From 3fc9b019403b8e6042f5fa03ad49ff90b712b195 Mon Sep 17 00:00:00 2001 From: Hector Ros Date: Tue, 20 Jan 2026 01:34:38 +0100 Subject: [PATCH] Fix frontend build: compile React bundle properly - Build TypeScript/React to JavaScript bundle - Serve compiled main.js and main.css - Update HTML to load compiled assets - Add build step to Dockerfile Co-Authored-By: Claude Sonnet 4.5 (1M context) --- Dockerfile | 3 +++ package.json | 2 +- public/index.html | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 318723d..2db04e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN bun install --frozen-lockfile --production # Copy source code COPY . . +# Build the React bundle +RUN bun run build + # Expose port EXPOSE 3001 diff --git a/package.json b/package.json index a419798..3bb8ee6 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "bun --hot server.ts", "start": "bun server.ts", - "build": "bun build public/index.html --outdir ./dist --target browser" + "build": "bun build src/main.tsx --outdir ./public/dist --target browser --minify" }, "devDependencies": { "@types/bun": "latest", diff --git a/public/index.html b/public/index.html index 94b8419..bbad72e 100644 --- a/public/index.html +++ b/public/index.html @@ -4,9 +4,10 @@ AiWorker - AI Agent Orchestration Platform +
- +