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)POLAR_ACCESS_TOKENRESEND_API_KEYNODE_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.