Deploy to Vercel
Vercel offers the easiest deployment experience for static sites.
One-Click Deploy
Manual Deployment
Step 1: Fork the Repository
Fork bentopdf/bentopdf to your GitHub account.
Step 2: Import to Vercel
- Go to vercel.com/new
- Select your forked repository
- Configure the project:
| Setting | Value |
|---|---|
| Framework Preset | Vite |
| Build Command | npm run build |
| Output Directory | dist |
| Install Command | npm install |
Step 3: Environment Variables (Optional)
Add these if needed:
SIMPLE_MODE=falseStep 4: Deploy
Click "Deploy" and wait for the build to complete.
Custom Domain
- Go to your project settings
- Navigate to "Domains"
- Add your custom domain
- Configure DNS as instructed
Limitations
Large Files
Vercel's serverless functions have a 50MB limit. Since BentoPDF is a static site, this shouldn't affect you, but WASM modules are large (~100MB total). Ensure they're served from the /public folder.
Troubleshooting
Build Timeout
If builds timeout, try:
json
// vercel.json
{
"buildCommand": "npm run build",
"outputDirectory": "dist"
}404 on Refresh
Add a vercel.json for SPA routing:
json
{
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}