Skip to content
Docs
Changelog

Changelog

New features, architectural changes and improvements to the template.

MarkdownRSS

Release notes are curated from repository history. Dates reflect integration into the main branch; grouped entries are not semantic-version tags. Each entry links to its implementation and current developer guide.

Brazilian Portuguese as the fourth language

pt-BR joins English, German and French in every catalog: web, mobile, error messages and account emails, with public pages under /br, share cards, push texts and the language pickers. A phone set to Brazilian Portuguese now opens the app in Portuguese instead of English.

  • Every catalog. apps/web/src/locales/pt-BR.ts, apps/mobile/src/locales/pt-BR.ts, packages/errors/src/locales/pt-BR.ts and packages/email/src/locales/pt-BR.ts hold the same keys and placeholders as English, written with "você" and Brazilian vocabulary. The parity, placeholder and bundle-marker tests cover the fourth catalog. The text was machine-assisted and still needs a native review before a client ships it. See Internationalization.
  • Public pages under /br. locale.config.ts adds "pt-BR" with the slug br: /br/privacy is the Portuguese page, ?lang=pt-BR, ?lang=pt_br and ?lang=pt answer a 301 to it, /pt-BR/privacy redirects to /br/privacy, and Accept-Language: pt-BR sends a first visit from / to /br. Hreflang, the sitemap, og:locale (pt_BR), the share cards, /br/index.md and the language switcher include it. URL segments stay untranslated and English stays the default. See SEO and discovery.
  • The phone's language. The app read only the device's language code, so a phone in pt-BR reported pt, matched no language and opened in English. languageForDevice now matches the device's preferred locales by full tag first, through matchLanguage from @template-cloudflare/intl. Push reminders register in the app's full language (pt-BR) instead of its first two letters, and the settings picker lists Português (Brasil).
  • Emails and notifications. Account emails write dates as 11 de julho de 2026, 12:34 UTC; PUSH_LOCALES and the reminder text include pt-BR (the column is plain text, so no migration).
  • Landing. The language list and the i18n illustration name Portuguese. The four product captures have no Portuguese version yet, so /br shows the English ones with Portuguese alternative text.

Pix, card and boleto with Pagar.me; Stripe and Polar review

Pagar.me joins Stripe, Polar and RevenueCat as an optional billing provider with an in-app checkout, and every provider call now works on the deployed Worker.

  • Pagar.me as a fourth provider. Off until pagarme is in BILLING_PROVIDERS. Pix (one period, QR and copy-and-paste code, 30-minute expiry by default), card tokenized in the browser (renewing, or one period in up to 12 installments) and boleto (renewing or one period), in BRL. /api/billing/pagarme verifies Pagar.me's RS256 signature when present and always re-reads the order or subscription by id before granting, so refunds and chargebacks revoke. Pagar.me has no recurring Pix. See Payments and the ADR-0004 amendment. Commit
  • In-app checkout on /billing. With Pagar.me as the checkout provider, choosing a plan opens a dialog: billing details once (CPF or CNPJ, phone, address), then the method; a Pix screen with a countdown and status polling, a boleto screen, paying the next period ahead, and Cancel renewal. Copy in English, German, French and Brazilian Portuguese. Commit
  • Stripe review. The pinned 2026-09-30.endive is current. Portal cancellations in flexible billing mode (cancel_at) now show as ending; invoice.paid, invoice.payment_failed and checkout.session.async_payment_failed re-read the subscription; STRIPE_PAYMENT_METHOD_CONFIGURATION pins Checkout's payment methods, for example card and boleto for BRL prices. Commit
  • Polar review. The pinned 2026-10 is current until Polar's January 2027 cycle. A subscription payload that no longer parses (a webhook endpoint created on another API version) now answers 400 instead of being recorded and dropped. Commit
  • Payment settings stay secrets. scripts/check-production-config.mjs refuses BILLING_*, STRIPE_*, POLAR_*, PAGARME_* and REVENUECAT_* in wrangler.jsonc vars, printing names only.

PR #218

Production guide and restore drill

A production guide with dated prices, Worker placement set by pnpm setup, a production mode for the job tick on Node, and a monthly restore drill on a throwaway local database.

  • A production guide. /docs/production covers Neon in São Paulo (aws-sa-east-1, fixed when the project is created), Launch versus Scale, why the one-minute cron keeps the compute awake, Worker placement, a monthly cost table with every price's source and reading date, running on a Node server or Google Cloud instead, backups, and monitoring a VPS. Deployment and rollback links to it. Commit
  • pnpm setup --placement. Setup writes placement into apps/web/wrangler.jsonc, keeps it for reruns, takes the region from a Neon --hyperdrive-db-url, and asks for it in the interactive wizard. It never reads the local DATABASE_URL. Commit
  • pnpm jobs:run --once --production runs the job tick on a Node server from a system timer. It reads only its own environment, never apps/web/.env, logs the same jobs.tick line as the Worker and exits 1 when the tick fails. See scheduled jobs on Node. Commit
  • node scripts/restore-drill.mjs <dump> restores a dump into a throwaway local PostgreSQL started by scripts/test-local-postgres.mjs. It runs db:verify-rls, counts the rows of every table, prints timings and the age of the newest row, and ends with one restore_drill JSON line for the alert channel. See restore drill. Commit

PR #213

Earlier releases

Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.