decision(ops): choose the plans, region, and preview database for the hosted instance
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- next.js, playwright, supabase, typescript
- Área
- devops, documentation, infrastructure
Línea de trabajo
Read docs/operations/self-hosting.md, docs/internal/hosted-instance.md, and the region and preview database guidance in docs/operations/deploy.md. The issue requires Eddie to choose plans and a region first, so a contributor cannot complete the documentation until that decision is recorded here; then update the listed docs and link the choice from #90 and #91.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
Found by the Fable pre-production review on 2026-12-02 (main at cedc1914; every line reference below re-checked on main at cde5aa3b). Sources: platform triage report, new issue 6, and deploy readiness report, new issue 5.
No doc names a plan for the hosted instance; only incidental notes exist (docs/operations/self-hosting.md:72 leaves backups to "your Supabase plan"; docs/operations/deploy.md:27 only advises a region). The choice decides #90 (backups) and #91 (log retention and alerting), and the Supabase region cannot be changed after the project is created. Whether the existing Vercel team that owns stack-dash is on Hobby or Pro is unverified.
What the code needs from the plan:
- Function duration: the tick declares
maxDuration = 120(src/app/api/jobs/tick/route.ts:14) and the provider callbackmaxDuration = 300(src/app/api/connections/[provider]/callback/route.ts:40). Both fit Hobby only with Fluid compute (Vercel docs: 300 s default and maximum). - Logs: users see reference ids that resolve only in server logs (
src/lib/log/logger.ts:46writes to stdout and stderr only). - Backups: provider tokens are sealed with
STACKDASH_ENCRYPTION_KEY, which lives outside the database, so a backup is useless without the escrowed key, and the database is useless without a backup. - Preview database: previews run unreviewed branch code and should use a separate staging project (
deploy.md:210-212), but one staging database cannot match every branch's migrations.
Vendor facts, read from the pricing pages on 2026-12-02 (supabase.com/pricing, vercel.com/pricing):
- Supabase Free: $0, no automatic backups, 1 day of API and database logs, projects paused after 1 week of inactivity (a tick every minute counts as activity [INFERENCE]), 2 active projects.
- Supabase Pro: from $25 a month including one Micro project; extra projects from $10 a month each; daily backups kept 7 days; 7 days of logs; log drains $60 a month each; branching $0.01344 per branch hour.
- Vercel Hobby: $0, 1 hour of runtime logs, no drains, one developer seat.
- Vercel Pro: $20 a month per developer seat, 1 day of runtime logs (30 days with Observability Plus, paid per event), drains $0.50 per GB.
- Vercel's fair use terms limit Hobby to non-commercial use [not re-read today; check before choosing].
This is Eddie's choice (vendor plans), so the options are below.
| Option | Pros | Cons | Effort | Impact |
|---|---|---|---|---|
| Status quo: nothing decided; Free and Hobby by default | $0 a month | No backup of sealed provider tokens (#90 cannot be met); reference ids unsearchable after 1 hour (#91 cannot be met); commercial use on Hobby is against Vercel's terms [unverified today] | XS (nothing) | Every outside tester: a lost database means every connection must be redone, and a reported error cannot be traced after an hour |
| A. Supabase Pro (production only), Vercel Hobby with Fluid compute | Daily backups for 7 days, 7 days of Supabase logs; about $25 a month | Vercel logs still 1 hour; no drain on Hobby, so #91 needs an external error tracker that receives errors directly; Hobby terms question remains | XS for the decision | Data is recoverable; app errors still need #91 (a) before the first real sync |
| B. Supabase Pro with a second Micro project for staging, Vercel Pro (one seat) | Backups, staging database for previews, Vercel logs for 1 day and drains available, commercial use allowed | About $25 + $10 + $20 = $55 a month before usage | XS for the decision | Covers #90 and the preview database; #91 (a) can be a drain or a tracker |
| C. Option B with Supabase branching instead of a staging project | Each preview can get its own database matching its migrations | Billed per branch hour; branching setup is not documented in this repository; previews sit behind Vercel SSO today | S (docs and setup) on top of B | Previews stop sharing one staging schema; cost grows with open pull requests |
Files each option touches:
| Option | Files |
|---|---|
| Status quo | none |
| A, B | docs/operations/self-hosting.md (What you need), docs/internal/hosted-instance.md, docs/operations/deploy.md:27 (region) and :210-212 (preview database) |
| C | the same, plus a branching section in deploy.md |
Recommendation: B. The deciding argument: #90 and #91 both need a paid plan on each vendor, and the staging project is what deploy.md:212 already asks previews to use. Second choice: A, if the Vercel team turns out to be Pro already or the log need is met by an external tracker.
Region: choose the Supabase region next to the Vercel functions region (deploy.md:27); record both on this issue.
Plan
- Eddie confirms which plan the Vercel team that owns
stack-dashis on. - Eddie picks an option and a region on this issue.
- Record the minimums in
self-hosting.md"What you need" and the hosted choice inhosted-instance.md. - Link the choice from #90 and #91.
Acceptance criteria
- The chosen plans, region, and preview database approach are recorded on this issue with monthly cost.
-
self-hosting.md"What you need" states the minimum plans and why (backups, function duration). -
hosted-instance.mdnames the hosted plans and region. - #90 and #91 cite the choice.
- Playwright e2e: none needed, docs only.
Files and areas
docs/operations/self-hosting.md, docs/internal/hosted-instance.md, docs/operations/deploy.md (region and preview database lines only).
Non-goals: creating projects or changing plans (Eddie's), the error tracker vendor choice (#91), the staged build decision (separate decision issue).
Verification
npm run lint; the docs e2e spec still passes.
Branch: <issue-number>-hosted-plans
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 2
- Merge medio
- 5 h 20 min
- PR fusionados (30 d)
- 287
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eddiejaoude/StackDash
-
area: integrations documentation priority: P2 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eddiejaoude/StackDash#798 ·
Los mantenedores suelen responder en 1 día
-
area: ops documentation priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
eddiejaoude/StackDash#796 ·
Los mantenedores suelen responder en 1 día
-
area: docs documentation impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eddiejaoude/StackDash#790 ·
Los mantenedores suelen responder en 1 día
-
area: ops bug impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eddiejaoude/StackDash#785 ·
Los mantenedores suelen responder en 1 día
-
area: connections enhancement impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
eddiejaoude/StackDash#768 ·
Los mantenedores suelen responder en 1 día
Todos los issues de eddiejaoude/StackDash
Issues similares
-
bot:ai-assisted component:midnight-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
midnightntwrk/midnight-js#1790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:vscode bug has repro platform:macos platform:vscode regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
effort/l priority/p1 risk/high triage/core
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
iflytek/skillhub#1188 · 1 comentario ·
Los mantenedores suelen responder en 1 día