Vercel is the easiest and best option for deploying TaskFlow. It provides:
- ✅ Automatic HTTPS (required for PWAs)
- ✅ Global CDN for fast loading
- ✅ Automatic deployments from Git
- ✅ Perfect PWA support
- ✅ Free hosting for personal projects
-
Install Vercel CLI:
npm install -g vercel
-
Login to Vercel:
vercel login
- Follow the prompts to authenticate
-
Deploy:
vercel
- Answer the prompts:
- Set up and deploy? Y
- Which scope? Choose your account
- Link to existing project? N
- What's your project's name? taskflow (or your choice)
- In which directory is your code located? ./
- Want to override the settings? N
- Answer the prompts:
-
Your app is now live!
- Vercel will give you a URL like:
https://taskflow-xyz.vercel.app - Visit it to see your deployed app
- Vercel will give you a URL like:
-
Deploy to production:
vercel --prod
-
Push to GitHub:
# Create a new repository on GitHub.com # Then run these commands: git remote add origin https://github.com/YOUR_USERNAME/taskflow.git git branch -M main git push -u origin main
-
Deploy on Vercel:
- Go to vercel.com
- Click "Sign Up" (use GitHub account)
- Click "Add New Project"
- Import your GitHub repository
- Vercel auto-detects Vite settings
- Click "Deploy"
-
Done!
- Your app is live at
https://your-project.vercel.app - Every git push to main will auto-deploy
- Your app is live at
Netlify is another excellent option:
-
Install Netlify CLI:
npm install -g netlify-cli
-
Login:
netlify login
-
Deploy:
# Build first npm run build # Deploy netlify deploy --prod --dir=dist
-
Push to GitHub (same as Vercel instructions)
-
Deploy on Netlify:
- Go to netlify.com
- Sign up with GitHub
- Click "Add new site" → "Import an existing project"
- Choose your repository
- Build settings:
- Build command:
npm run build - Publish directory:
dist
- Build command:
- Click "Deploy"
-
Install gh-pages:
npm install --save-dev gh-pages
-
Update package.json: Add to your
package.json:{ "homepage": "https://YOUR_USERNAME.github.io/taskflow", "scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d dist" } } -
Update vite.config.ts: Add base path:
export default defineConfig({ base: '/taskflow/', // ... rest of config })
-
Deploy:
npm run deploy
After deploying, verify:
- ✅ HTTPS is enabled (check URL starts with https://)
- ✅ PWA installs correctly:
- Visit on mobile
- Look for "Add to Home Screen" prompt
- Install and test
- ✅ Notifications work:
- Grant permission
- Create task with reminder
- Verify notification appears
- ✅ Offline mode works:
- Install the app
- Turn off WiFi/data
- App should still work
- ✅ All pages load (Home, Stats, History, Settings)
For TaskFlow, I strongly recommend Vercel because:
- Zero configuration needed
- Perfect Vite support
- Automatic HTTPS
- Free SSL certificates
- Global CDN
- Automatic PWA optimization
- Easy custom domains
- Go to project settings
- Click "Domains"
- Add your custom domain
- Update DNS records as instructed
- SSL automatically configured
- Go to site settings
- Click "Domain management"
- Add custom domain
- Update DNS records
- SSL automatically configured
After deployment:
- Vercel: Provides analytics in dashboard
- Netlify: Provides built-in analytics
- Both show deployment logs and errors
Both Vercel and Netlify support automatic deployments:
- Every
git pushto main branch triggers deployment - Build logs available in dashboard
- Instant rollback if needed
- Test locally first: Always run
npm run buildandnpm run previewbefore deploying - Check build size: Keep bundle size under 500KB for best performance
- Use environment variables: Store sensitive data in Vercel/Netlify environment variables
- Monitor performance: Use Lighthouse in Chrome DevTools to check PWA score
- Check Node version (should be 18+)
- Verify
npm run buildworks locally - Check build logs for specific errors
- Ensure HTTPS is enabled
- Check Service Worker is registered
- Verify manifest.json is accessible
- Add
vercel.jsonwith rewrites (see below)
vercel.json:
{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}Choose your preferred method above and follow the steps. Vercel CLI is the fastest way to get started!
Quick start:
npm install -g vercel
vercel login
vercelThat's it! Your TaskFlow app will be live in minutes! 🎉