feat: backend en Cloud Run + deshacer workarounds de Render#30
Merged
Conversation
Mueve el despliegue del backend (+ mock) a Google Cloud Run (free, arranque ~1-2s con la petición esperando, sin el 502 de Render) y revierte los workarounds que metimos por culpa del cold-start de Render. Se conserva el dashboard (rediseño, KPIs, filtros). Frontend: - fetchDashboard vuelve a un fetch simple de /api/sales que lanza si falla (lo recoge error.tsx). Fuera SAMPLE, triggerRefresh y el import del JSON. - Borrados sample-sales.json y app/api/dashboard/route.ts (ya no hay self-heal). - Dashboard recibe 'sales' por props; quitado warming/poll/self-heal; mantiene filtros y derivaciones. page.tsx pasa las ventas. Despliegue/docs: - Borrado render.yaml; nuevo scripts/deploy-cloudrun.sh. - DEPLOY.md reescrito a Cloud Run; DEMO.md, README(.en).md, DEUDA-TECNICA.md y docker-compose.yml actualizados (Render -> Cloud Run; sin datos embebidos). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mueve el backend (+ mock) a Google Cloud Run (free, arranque ~1-2 s con la petición esperando — sin el 502 de Render) y revierte los workarounds del frontend que añadimos por el cold-start de Render. Se conserva el dashboard (rediseño + KPIs + filtros).
Frontend (deshacer workarounds)
fetchDashboard→ fetch simple de/api/salesque lanza si falla (lo recogeerror.tsx). FueraSAMPLE,triggerRefreshy el import del JSON.sample-sales.jsonyapp/api/dashboard/route.ts(sin self-heal).Dashboardrecibesalespor props; quitado warming/poll; mantiene filtros + derivaciones.Despliegue / docs
render.yaml; nuevoscripts/deploy-cloudrun.sh.DEPLOY.mdreescrito a Cloud Run;DEMO.md,README(.en).md,DEUDA-TECNICA.md,docker-compose.ymlactualizados.Al quitar los datos embebidos, la demo en Vercel necesita el backend en Cloud Run. Orden:
BACKEND_URL(Cloud Run) en Vercel.Verificación
lint✅ ·test:run✅ (30) ·build✅🤖 Generated with Claude Code