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 <noreply@paperclip.ing>
This commit is contained in:
parent
aa137d69b3
commit
86a7829a75
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ./
|
||||
|
|
|
|||
Loading…
Reference in a new issue