-
Fork/Clone the repository
-
Connect to Vercel:
- Go to vercel.com
- Import your GitHub repository
- Vercel will auto-detect Next.js settings
-
Environment Variables (if needed):
- No environment variables required for basic functionality
- Add any API keys if you extend the functionality
-
Build Settings:
- Framework Preset: Next.js
- Build Command:
npm run build - Output Directory:
.next - Install Command:
npm install
The project includes optimal settings for Vercel:
- Static File Serving: Tiles served from
public/tiles/ - API Routes: Tile generation API works seamlessly
- Automatic HTTPS: Provided by Vercel
- Global CDN: Fast tile delivery worldwide
- Tile Caching: API routes include proper cache headers
- Static Assets: Large tile files are served as static assets
- Bundle Size: Core app is lightweight (~2MB)
- Connect your repository to Netlify
- Build command:
npm run build && npm run export - Publish directory:
out
- Build the project:
npm run build - Start the server:
npm start - Serve on port 3000 or configure reverse proxy
- Custom Domain: Add your domain in Vercel dashboard
- DNS Configuration: Point your domain to Vercel's nameservers
- SSL: Automatically provided by Vercel
- Vercel Analytics: Built-in performance monitoring
- Error Tracking: Automatic error reporting in Vercel dashboard
- Logs: Real-time function logs available
Vercel Free Tier Limits:
- Bandwidth: 100GB/month
- Function Executions: 100GB-hours/month
- Build Time: 6000 minutes/month
For higher traffic, upgrade to Pro plan.