deco-migrate: routes geram siteName com P maiúsculo ('Portaldavinci-tanstack') — lookup CMS falha
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Start by reading deco-migrate/templates/routes/$.tsx and deco-migrate/templates/routes/index.tsx, then compare the generated siteName with the name in wrangler.jsonc. Verify that generated routes use the lowercase site name and that the CMS lookup no longer produces empty SSR sections or the reported CLS regression.
Written by the indexing model from the issue text.
Description
Gap encontrado: portal-davinci migration run (2026-08-20)
Fase
migrate-script → geração de src/routes/index.tsx e src/routes/$.tsx
Problema
O template de rotas gera siteName: "Portaldavinci-tanstack" (capital P no site name).
O lookup do decofile no CMS Deco é case-sensitive. O site name correto é portaldavinci-tanstack (tudo minúsculo, igual ao nome do worker em wrangler.jsonc).
Com o nome errado:
cmsHomeRouteConfig({ siteName: "Portaldavinci-tanstack" })retorna decofile vazio- Todas as seções renderizam vazias no SSR (resolvedSections: [])
- O conteúdo só aparece após hidratação client-side → CLS 0.822 na página inicial
Evidência
CLS: prod=0.000, cand=0.822 (cls delta 0.822 > 0.05)
Corrigir para portaldavinci-tanstack (lowercase) resolve o mismatch.
Fix sugerido
No template de rotas (deco-migrate/templates/routes/$.tsx e index.tsx), garantir que siteName seja sempre o nome do site em minúsculas — igual ao "name" do wrangler.jsonc:
siteName: ctx.siteName.toLowerCase()
Relacionado
- decocms/parity#234 — migrate-script predev command
- decocms/parity#235 — SiteSetupOptions type mismatch
Transferida de decocms/parity#239 (bug de template do deco-migrate / @decocms/blocks-cli, fora do escopo do repo parity).
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 2
- Avg merge
- 20h 12m
- Merged PRs (30d)
- 36
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from decocms/blocks
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·