Deployment
Deploying to Vercel
The easiest way to deploy your TanStack Start application is with Vercel.
- Push your code to a GitHub repository.
- Import the project in Vercel.
- Vercel should automatically detect the framework settings.
- Add your Environment Variables in the Vercel Project Settings.
- Deploy!
Environment Variables
Ensure you add all required environment variables to your deployment:
MONGODB_URIBETTER_AUTH_SECRETBETTER_AUTH_URL(Set to your production URL)GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRETPOLAR_ACCESS_TOKENPOLAR_WEBHOOK_SECRETRESEND_API_KEYVITE_GA_MEASUREMENT_IDNODE_ENV(Set to "production")
Build Command
The build command is:
pnpm run build
Output Directory
The output directory is usually .output or handled automatically by the Vercel adapter.