Open Lovable - Vercel Sandbox
This project is configured to use Vercel Sandboxes for code execution.
Setup
- Configure Vercel authentication (see below)
- Get your Firecrawl API key from https://firecrawl.dev
- Copy
.env.exampleto.envand add your credentials - Run
npm installto install dependencies - Run
npm run devto start the development server
Vercel Authentication
Option 1: OIDC Token (Automatic for Vercel deployments)
When running in a Vercel environment, authentication happens automatically via OIDC tokens. No configuration needed!
Option 2: Personal Access Token (For local development)
- Create a Personal Access Token in your Vercel account settings
- Get your Team ID from your team settings
- Create a project and get the Project ID
- Add these to your
.envfile:VERCEL_TOKENVERCEL_TEAM_IDVERCEL_PROJECT_ID
Vercel Sandbox Features
- Lightweight ephemeral Linux VMs
- Powered by Firecracker MicroVMs
- 5-minute default timeout (max 45 minutes)
- 8 vCPUs maximum
- Root access for package installation
- Node 22 runtime included
Configuration
You can adjust Vercel settings in config/app.config.ts:
maxDuration: Sandbox session timeout (default: 5 minutes)- Authentication method (OIDC or PAT)
Troubleshooting
If you encounter issues:
- Verify your authentication credentials
- Check if you're using the correct authentication method
- Ensure your Vercel account has sandbox access
- Check the console for detailed error messages
For more help, visit the Vercel Sandbox documentation.