Documentation Index
Fetch the complete documentation index at: https://mintlify.com/konhi/elevenlabs-speech-to-text-api-ui/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Vercel provides seamless deployment for this project with built-in Bun support. The repository includes avercel.json configuration file for optimal deployment settings.
Vercel Configuration
The project includes avercel.json file with the following configuration:
Configuration Options
- bunVersion:
"1.x"- Ensures Vercel uses Bun 1.x for building and running the application - outputDirectory:
"dist"- Specifies where build artifacts are located
Deployment Methods
Step-by-Step Deployment
Deploy the project
From your project root directory:For production deployment:The Vercel CLI will:
- Detect the Bun runtime from
vercel.json - Install dependencies using
bun install - Run
bun run buildautomatically - Deploy the
dist/directory
GitHub Integration
Import in Vercel
- Go to vercel.com
- Click “Add New” → “Project”
- Import your GitHub repository
- Vercel auto-detects the configuration from
vercel.json
Configure project settings
Vercel should automatically detect:
- Framework Preset: Other
- Build Command:
bun run build - Output Directory:
dist - Install Command:
bun install
Automatic Deployments
Once connected to GitHub, Vercel automatically:- Production deployments: Every push to
mainbranch - Preview deployments: Every pull request
- Instant rollbacks: Previous deployments remain accessible
Branch Deployments
Build Configuration
Vercel uses the following commands (automatically detected):| Command | Value |
|---|---|
| Install Command | bun install |
| Build Command | bun run build |
| Output Directory | dist |
| Development Command | bun run dev |
Custom Domain
To add a custom domain:Environment Variables
This project doesn’t require environment variables. The ElevenLabs API key is entered by users in the UI.
- Go to Project Settings → Environment Variables
- Add your variables
- Redeploy the project
Troubleshooting
Build Fails on Vercel
Ensurevercel.json is present and correctly configured:
Wrong Node.js Version
If Vercel uses Node.js instead of Bun, verify:vercel.jsonincludes"bunVersion": "1.x"- The file is in your repository root
- You’ve redeployed after adding the file
Missing Build Output
If deployment succeeds but the site is blank:- Verify
outputDirectoryis set to"dist" - Check that
bun run buildcreates files in thedist/folder - Review build logs in Vercel dashboard
Dependencies Not Installing
Ensurepackage.json and bun.lockb are committed:
Performance Optimization
Vercel automatically provides:- Edge Network: Global CDN for fast content delivery
- Automatic HTTPS: SSL certificates for all deployments
- Compression: Gzip and Brotli compression
- Caching: Intelligent caching of static assets
Build Cache
Vercel cachesnode_modules (or in this case, Bun’s cache) between builds for faster deployments.
Monitoring
Vercel provides built-in analytics:- Go to your project dashboard
- Navigate to the Analytics tab
- View:
- Page views
- Traffic sources
- Performance metrics
- Real user monitoring
Preview Deployments
Every git push creates a unique preview URL:- Don’t affect production
- Have unique URLs
- Perfect for testing
- Automatically commented on PRs
CLI Commands Reference
Next Steps
After deploying to Vercel:- Share your deployment URL with users
- Configure a custom domain (optional)
- Set up GitHub integration for automatic deployments
- Monitor analytics in the Vercel dashboard
Your ElevenLabs Speech-to-Text API UI is now live on Vercel! Users can access it and enter their own API keys to start transcribing audio.