ci(web): instalar apenas o pacote 'web' e apontar Convex via overlay (NEXT_PUBLIC_CONVEX_URL=http://sistema_convex_backend:3210)\n\n- Evita EACCES em apps/desktop/node_modules no runner.\n- Bypassa DNS/Traefik para chamadas servidor->Convex dentro da stack.

This commit is contained in:
Esdras Renan 2025-10-09 19:16:10 -03:00
parent d9ab863e76
commit 6700bd9f15
2 changed files with 3 additions and 1 deletions

View file

@ -163,7 +163,7 @@ jobs:
run: |
cd "$EFFECTIVE_APP_DIR"
corepack enable || true
pnpm install --no-frozen-lockfile
pnpm --filter web install --no-frozen-lockfile
pnpm prisma:generate
pnpm build

View file

@ -18,6 +18,8 @@ services:
NODE_ENV: "production"
# Garante instalação de devDependencies para o build (prisma CLI)
NPM_CONFIG_PRODUCTION: "false"
# Use service-to-service no overlay para o Convex
NEXT_PUBLIC_CONVEX_URL: "http://sistema_convex_backend:3210"
# Mantém o SQLite fora do repositório
DATABASE_URL: "file:/app/data/db.sqlite"
# Usado para forçar novo rollout a cada deploy (setado pelo CI)