This repository is a Turborepo-managed monorepo with two Next.js apps and a shared UI package. ESLint has been replaced by Biome for linting and formatting in apps.
apps/web: Public site (Next.js). Rewrites/approutes to the application zone viaAPP_ORIGIN.apps/app: Application zone (Next.js) served under the base path/app.
packages/ui(@turbotemplate/ui): Shared component library and utilities used by both apps.
All code is TypeScript.
- English and Spanish internationalization PRD: website routing, app preferences, authentication, billing, emails, and support in generated projects.
- Node.js ≥ 18
- Bun (repo is configured with
packageManager: [email protected])
bun installRun both apps with Turborepo:
bun run devTo run a single app:
bunx turbo run dev --filter=web
bunx turbo run dev --filter=appLocal defaults (when both are running):
- Web: http://localhost:3000
- App: http://localhost:3001/app
The web app rewrites /app traffic to the app origin. Set APP_ORIGIN so links resolve correctly:
# from apps/web
APP_ORIGIN=http://localhost:3001Build everything:
bun run buildBuild a single target:
bunx turbo run build --filter=web
bunx turbo run build --filter=appWe use Biome instead of ESLint/Prettier inside apps.
From the repo root (runs across workspaces via Turborepo):
bun run lint # executes "biome check" in each app
bun run format # executes "biome format --write" in each appFrom an individual app directory:
bun run lint
bun run formatNote: The root still includes Prettier primarily for miscellaneous files. Prefer Biome for TypeScript/JavaScript formatting in app workspaces.
bun run check-typesBoth apps transpile and consume @turbotemplate/ui.
Example usage:
import { Button } from "@turbotemplate/ui/components/button";
export default function Example() {
return <Button>Click me</Button>;
}Aliases provided by the apps map ui and utils to the package (see each app's components.json).
apps/apphasbasePath: "/app".apps/webrewrites/appand/app/:path*toAPP_ORIGIN.
For local development set APP_ORIGIN=http://localhost:3001 in apps/web when both apps run.
- Cache-aware tasks live in
turbo.json. - Use
--filterto scope tasks, e.g.--filter=webor--filter=app.
Useful docs: tasks, caching, filters, and configuration at the Turborepo site.
Set email variables in the Convex deployment. The backend environment example lists the settings for each provider.
Plunk is the default. Set PLUNK_FROM_EMAIL to a verified email address without a display name. Test mode records messages in Convex without sending them. To send live mail, set PLUNK_API_KEY and set PLUNK_TEST_MODE=false. For delivery events, set PLUNK_WEBHOOK_SECRET and configure Plunk workflows to post to /plunk-webhook with that secret as a bearer token.
To use Resend, set EMAIL_DELIVERY_PROVIDER=resend, RESEND_API_KEY, and RESEND_FROM_EMAIL. Resend test mode accepts only Resend test recipients. Set RESEND_TEST_MODE=false to send to real recipients. Resend sends through its API and reports delivery status in its dashboard.
Before upgrading a deployment that uses the old Resend component, drain its email queue. The new deployment uses /plunk-webhook in place of /resend-webhook. Remove the old Resend webhook after pending events have arrived.
When a caller can retry the welcome email action, pass the same idempotencyKey for the same event. Resolve uncertain sends before switching providers for a retry.
Both apps share typed catalogs in packages/i18n. Public Spanish pages use /es. Account pages keep /app paths and save the selected language in account settings.
See the translation guide for message, route, locale, email, and template changes. See vendor release checks before announcing bilingual support.
bun run check-i18n
bun run test
bun run check-templateDependencies use the latest stable registry versions checked on 4 November 2026. Use Bun 1.4.0 and Node 24 LTS. Next.js 16.4.5 has a small tracked patch to preserve response Vary headers. See the translation guide before upgrading Next.js.