1. Add Nitro to vite.config.ts
Include the nitro() plugin from nitro/vite alongside tanstackStart(). When forkrail builds your project with VERCEL=1, Nitro v3 outputs a Web fetch Build Output with immutable Vite asset caching and context.waitUntil support.
import { defineConfig } from 'vite'import { tanstackStart } from '@tanstack/react-start/plugin/vite'import viteReact from '@vitejs/plugin-react'import { nitro } from 'nitro/vite'export default defineConfig({ plugins: [ nitro(), tanstackStart(), viteReact(), ],})2. Deploy preview & production
forkrail project my-start-app --memory 1024forkrail deployforkrail deploy --prodIf your server functions talk to AWS services (DynamoDB, S3, KMS, RDS) inside the same AWS account, assign a project IAM role with forkrail project my-start-app --role my-app-role instead of storing long-lived AWS keys in env vars.
3. Nitro scheduled tasks & prebuilt deploys
- Cron tasks: Nitro v3
scheduledTasksautomatically translate into forkrail schedules calling/_vercel/cron(authenticated withCRON_SECRETwhen configured), alongside anycronsinvercel.json. - Prebuilt deploys: Already ran
npm run buildin CI? Ship.vercel/output/directly withforkrail deploy --prebuilt. - Concurrent compute: Up to 10 simultaneous SSR and server-function requests share one warm Lambda worker over reverse HTTP/2.
Related documentation
Ready to deploy your TanStack Start project inside your own AWS account?
Quickstart