SP8.3: remove o front vanilla + porta legais pro Next#156
Merged
Conversation
…cional Cutover IRREVERSÍVEL (rollback = revert+redeploy; último commit com vanilla: 19aa788). O Next já era a produção em /app (PORTAL_NEXT=on há tempos); o vanilla só sobrava como rollback por flag. - Páginas legais portadas pro Next: web/app/privacidade + web/app/termos + web/components/legal/LegalPage.tsx (conteúdo legal fiel, design do app). Eram as únicas páginas sem equivalente no Next; o resto o /app já cobre. - index.ts: serving do Next em /app vira INCONDICIONAL (sem branch PORTAL_NEXT) e remove o PORTAL_STATIC (vanilla na raiz). Redirects 301 das URLs antigas (/app.html, /plano.html, /privacidade.html, /termos.html) -> rotas Next, pra não quebrar links da landing pública (proxiados pelo worker do site). - cutover-urls.ts: helpers always-on (sem flag); routes.ts dropa portalNextOn(). - email.ts: link do magic-link /app.html#atividade -> /app/atividade/. - billing/usage.ts: mensagens de upgrade zinom.ai/app.html -> /app/plano. - Remove portal/ (vanilla inteiro) e os e2e que miravam /app.html (cobertos pelo web/ e2e); mantém admin-ui.spec (harness próprio, independente). - RUNBOOK: front sem flag, build do web obrigatório em todo deploy, rollback=revert. PORTAL_NEXT vira no-op (remover do .env). build+test verdes (1349/1349); web build + typecheck + lint verdes (subagente). Deploy precisa do build do web/ (RUNBOOK). Co-Authored-By: Claude Opus 4.8 (1M context) <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.
SP8.3 — Remove o front vanilla (IRREVERSÍVEL)
O Next já é a produção em
/app(PORTAL_NEXT=onhá tempos); o vanilla só sobrava como rollback por flag. Este PR aposenta o vanilla de vez.Bloqueio resolvido:
/privacidadee/termosexistiam SÓ no vanilla (sem rota no Next nem no worker do site). Portei as duas pro Next antes de remover, então nada legal quebra.Mudanças
web/app/privacidade+web/app/termos+web/components/legal/LegalPage.tsx(conteúdo fiel, design do app; build/typecheck/lint verdes)./appvira incondicional (sem branchPORTAL_NEXT); remove oPORTAL_STATIC(vanilla na raiz). Redirects 301 das URLs antigas (/app.html,/plano.html,/privacidade.html,/termos.html) → rotas Next, pra não quebrar os links da landing pública (proxiados pelo worker do site)./app/...); some oportalNextOn().portal/inteiro e os e2e que miravam/app.html(cobertos peloweb/e2e); mantémadmin-ui.spec(harness próprio).web/obrigatório em todo deploy.Verificação
npm run build+npm testverdes (1349/1349).web/: typecheck + lint +bun run buildverdes;/privacidadee/termosexportam estático.web/(ver RUNBOOK) — sem fallback. Vou validar pós-deploy:/app/200,/app/privacidade/200,/privacidade.html301,/mcp401.PORTAL_NEXTno.envvira no-op (removo no deploy).🤖 Generated with Claude Code