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.

Error reporting to a self-hosted tracker, off until a DSN is set

packages/error-reporting sends scrubbed errors from the Worker, the browser and the Expo app to a Sentry-compatible tracker; deploy/error-tracker runs Rustrak in Docker behind a Cloudflare Tunnel.

  • One package for every runtime. packages/error-reporting configures Sentry's SDKs for the Worker (withErrorReporting around fetch and scheduled), the browser and the Expo app, each off until its DSN is set (ERROR_REPORTING_DSN, VITE_ERROR_REPORTING_DSN, EXPO_PUBLIC_ERROR_REPORTING_DSN). Every event passes one scrubber: e-mails, credentials, td_/mr_/sk_/pk_ tokens and CPFs are redacted, URLs lose their query, only a short header list stays, the user is just an id, and a project's health keys go at any depth. Sentry v11's permissive defaults are replaced by a restricted dataCollection, and pnpm lint fails on an @sentry/* import anywhere else. /api/rpc reports unexpected failures with their request ID, and a browser error after a failed API call carries that call's x-request-id. See error reporting. (0269751)
  • Nothing before the first paint. The browser SDK (33 KB gzip) loads after hydration; until then a few hundred bytes keep uncaught errors. The Worker imports its SDK on the first request only when reporting is on. With no DSN the startup chunks grow by 808 bytes gzip, and the build fails if a startup chunk ever contains the SDK. Browser reports go through POST /api/errors/tunnel on the site's own origin, limited to 30 a minute per person in the database. Production deploys upload hidden source maps to the tracker and delete them before deploy, and skip that without a token. (0269751, measurement)
  • The tracker. deploy/error-tracker runs Rustrak (server and dashboard, telemetry off, SQLite or PostgreSQL) for a VPS, published through a Cloudflare Tunnel with the dashboard behind Cloudflare Access. A local run received a Worker error, browser errors and a Hermes frame, scrubbed and symbolicated. (12f2043)

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.