Overview
While SST primarily focuses on AWS deployments, you can deploy your SST applications to Vercel for frontend hosting while keeping your backend infrastructure on AWS or other cloud providers.Deployment
To deploy to Vercel:- Connect your repository to Vercel
- Configure your build settings
- Deploy using Vercel’s platform
Integration Patterns
Frontend on Vercel, Backend on AWS
A common pattern is to deploy your frontend applications (Next.js, React, etc.) to Vercel while keeping your backend API, database, and other infrastructure on AWS using SST components.sst.config.ts
Environment Variables
You can pass SST resource outputs to Vercel as environment variables:- Deploy your SST app:
sst deploy - Note the output URLs and values
- Add them as environment variables in your Vercel project settings
- Deploy your Vercel project
Use Cases
Next.js on Vercel with SST Backend
Deploy your Next.js frontend to Vercel while using SST for:- API endpoints (Lambda functions)
- Database (DynamoDB, RDS)
- File storage (S3)
- Authentication (Cognito)
Multi-Region Setup
Use Vercel’s global edge network for static assets and frontend, while SST manages regional backend services.Learn More
Note
SST does not provide a dedicatedsst.vercel component namespace. The integration works by deploying your infrastructure with SST and connecting it to applications hosted on Vercel through environment variables and API endpoints.