From 86a7829a75a41e5f7941da1926fb300350db25f7 Mon Sep 17 00:00:00 2001 From: Paperclip FoundingEngineer Date: Sun, 3 May 2026 00:39:50 +0000 Subject: [PATCH] fix(deploy): correct ALLOWED_ORIGINS and VITE_API_URL defaults; fix Coolify NODE_ENV npm ci - compose.coolify.yml: ALLOWED_ORIGINS default now includes dashboard.barodine.net and points to agenthub.barodine.net (not deleted agenthub-v2 domain) - compose.coolify.yml: VITE_API_URL build arg default updated to agenthub.barodine.net - web/Dockerfile: prefix npm ci with NODE_ENV=development in both stages (Coolify auto-injects NODE_ENV=production as build ARG, which skips devDeps and breaks TypeScript/Vite compilation) Co-Authored-By: Paperclip --- compose.coolify.yml | 4 ++-- web/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compose.coolify.yml b/compose.coolify.yml index f3e3501..5843694 100644 --- a/compose.coolify.yml +++ b/compose.coolify.yml @@ -16,7 +16,7 @@ services: REDIS_HOST: ${REDIS_HOST:-redis} REDIS_PORT: ${REDIS_PORT:-6379} JWT_SECRET: ${JWT_SECRET} - ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub-v2.barodine.net} + ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-https://agenthub.barodine.net,https://dashboard.barodine.net} networks: - default - coolify @@ -94,7 +94,7 @@ services: context: ./web dockerfile: Dockerfile args: - VITE_API_URL: ${VITE_API_URL:-https://agenthub-v2.barodine.net} + VITE_API_URL: ${VITE_API_URL:-https://agenthub.barodine.net} networks: - default - coolify diff --git a/web/Dockerfile b/web/Dockerfile index 880bc34..1dccb07 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /app COPY package.json package-lock.json ./ RUN --mount=type=cache,target=/root/.npm \ - npm ci --prefer-offline + NODE_ENV=development npm ci --prefer-offline # ───────────────────────────────────────────────────────────────────────────── # Stage 2: Build @@ -22,7 +22,7 @@ ARG VITE_API_URL=http://localhost:3000 ENV VITE_API_URL=${VITE_API_URL} COPY package.json package-lock.json ./ -RUN npm ci +RUN NODE_ENV=development npm ci COPY tsconfig.json tsconfig.app.json tsconfig.node.json ./ COPY vite.config.ts tailwind.config.js postcss.config.js ./