build(next): enforce Turbopack for build; docs: note Turbopack usage in ops guide

This commit is contained in:
Esdras Renan 2025-10-09 22:56:30 -03:00
parent 6d69fcfa3c
commit c9eaee7309
2 changed files with 8 additions and 1 deletions

View file

@ -308,3 +308,10 @@ Benefícios
- CI/CD (web + desktop): `.github/workflows/ci-cd-web-desktop.yml` - CI/CD (web + desktop): `.github/workflows/ci-cd-web-desktop.yml`
- Guia CI/CD Desktop: `apps/desktop/docs/guia-ci-cd-web-desktop.md` - Guia CI/CD Desktop: `apps/desktop/docs/guia-ci-cd-web-desktop.md`
- Docs Convex selfhosted: imagem oficial `ghcr.io/get-convex/convex-backend` - Docs Convex selfhosted: imagem oficial `ghcr.io/get-convex/convex-backend`
## Turbopack (Next.js)
- O projeto usa Turbopack em dev e build.
- Scripts (package.json):
- `dev`: `next dev --turbopack`
- `build`: `next build --turbopack`
- O workflow de CI executa `pnpm build` (que já chama Turbopack via script), e a stack utiliza `pnpm start` sobre o artefato gerado.

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev --turbopack", "dev": "next dev --turbopack",
"build": "next build", "build": "next build --turbopack",
"start": "next start", "start": "next start",
"lint": "eslint", "lint": "eslint",
"prisma:generate": "prisma generate", "prisma:generate": "prisma generate",