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.

Host in Europe: an opt-in the deploy verifies

A project that must store its data in the EU opts in once with pnpm setup; every production deploy then refuses a placement hint, R2 bucket or Neon database outside the Union.

  • New: pnpm run setup --data-residency eu. The wizard asks once where data at rest must be stored. The opt-in writes "DATA_RESIDENCY": "eu" into the vars of apps/web/wrangler.jsonc, sets the placement to aws:eu-central-1 unless you name another EU region, and refuses a region outside the Union, London and Zurich included. --data-residency none removes it. The template ships without it. See Host in Europe. (d61b56a)
  • The production deploy checks it. With the opt-in, scripts/check-production-config.mjs refuses to publish when the placement hint is not an EU region, a bound R2 bucket or STORAGE_ENDPOINT lacks the EU jurisdiction, or DATABASE_URL is a Neon host outside the EU; the Hyperdrive check reads the origin's region too. A database on another provider gets a warning to confirm by hand. No value is printed. pnpm doctor checks the tracked config. (d61b56a)
  • What it promises, in one record. ADR-0021 replaces the decision four projects each wrote on their own: data is stored in the EU; where a Worker executes, where the cron runs and where Workers Logs are kept cannot be pinned on this plan. (0ca814f)

One Worker on Workers Paid, a docs budget and reserved ADR numbers

Four decision records: production runs on Workers Paid, docs keep compiling into the Worker within a budget, /api stays on the app's host, and the app stays one Worker with four seams that keep a split cheap.

  • Production runs on Workers Paid. ADR-0017 states the plan the template assumes. The limits, the cost per daily user and the reason the database is the first bottleneck are on a new page, Limits, cost and when to split. (e906b15)
  • Docs stay in the Worker, with a budget. ADR-0018 answers the question ADR-0010 left open. pnpm --filter web build now prints the size of the docs chunk and fails above 5,500,000 B raw; scripts/measure-worker-build.mjs reports the chunk for the baseline and the working tree. Raise DOCS_CHUNK_BUDGET_BYTES in scripts/docs-chunk.mjs in the change that needs it. (aba3277)
  • The API stays on the app's host. ADR-0019: /api/* is never moved to another origin, so EXPO_PUBLIC_SERVER_URL in a shipped app never changes. (e906b15)
  • One Worker, four seams. ADR-0020 keeps web, API and cron in one Worker, lists the triggers that would justify a second one, and names four seams that make a later split a move. AGENTS.md states them as rules ("Keep the split cheap"). (e906b15, 1ee4502)
  • ADR numbers. 0001 to 0099 belong to the template; a project created from it numbers its own decisions from 0100 (decisions, setup). (1ee4502)

Sign up and sign in with Google and Apple

Google and Apple ship off and switch on per project with their environment variables. Apple's client secret signs itself, social sign-ups get the same Organization and records as email sign-ups, and the app signs in natively with Apple on iOS.

  • New: social sign-in, off by default. Better Auth registers Google when GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are set, and Apple when all five APPLE_* variables are set; half a provider stays off and is logged once. Nothing is project-specific, and a fresh project shows no buttons. See Social sign-in. (1e8a7f6, 5c9d90b)
  • Apple's client secret signs itself. The server signs the ES256 JWT Apple requires from the .p8 key with Web Crypto, valid 30 days, cached per isolate and renewed a day before it expires, so nobody rotates it. Checked on the built Worker in local workerd and in Node tests. https://appleid.apple.com is a trusted origin while Apple is on, for its form post callback. (5c9d90b)
  • The same account either way. A Google or Apple sign-up goes through the same hooks as an email sign-up: personal Organization, owner membership, user.created, org.created and auth.sign_in audits, the Active Organization on the Session, and one welcome email. An integration test compares the three paths on a local Postgres. (5c9d90b)
  • Linking only by a verified address. Google or Apple joins an existing User only when the provider vouches for the address and the User has verified it too. An unverified password account gets account_not_linked instead of being taken over, and a User with two-factor on gets no social Session (TWO_FACTOR_REQUIRED) because Better Auth's challenge covers credential sign-ins only. Apple's name, sent only on the first authorization, is kept; without one the address's local part stands in. See Accounts and linking. (5c9d90b)
  • Clients show only what is on. appConfig.get lists auth.socialProviders (names only, also in its fallback), and the web sign-in and sign-up pages render "Continue with Google / Apple" from it on the first paint, with each brand's mark, a spinner while the browser leaves and a message when the provider sends the person back with an error. (cf2459e, c71367e)
  • Mobile. On iOS the app uses the native Sign in with Apple sheet and sends its identity token with a nonce: the server refuses an Apple token without one. Google goes through the Expo plugin's browser flow. App Store guideline 4.8 is in the button logic: on iOS Google shows only next to Apple. expo-apple-authentication and expo-crypto are native modules, so rebuild the development client. (e8d4919)
  • Setup. pnpm setup offers both providers, reads the Apple key from its .p8 file, refuses half a provider, and --worker-secrets publishes them as Worker secrets; pnpm doctor names missing variables. The auth guide has the Google Cloud and Apple Developer console steps. (b1e05de, 2bc6da7)

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.