1---2name: hosting-23description: Choose and manage web hosting services for websites and apps without server administration.4---56# Web Hosting Guidance78## Choosing the Right Type9- Static sites (HTML, CSS, JS only): Use Vercel, Netlify, Cloudflare Pages, GitHub Pages — free tier often enough, no server management10- Dynamic sites with backend: Platform hosting (Railway, Render, Fly.io) handles servers without manual management11- WordPress or PHP: Managed WordPress hosts (WP Engine, Kinsta) or traditional shared hosting12- E-commerce: Shopify or platform-specific hosting — payment security is not worth DIY risk13- Don't recommend VPS to someone uncomfortable with terminal — managed hosting exists for a reason1415## Shared Hosting Reality16- "Unlimited" bandwidth and storage always have fair use limits — read the terms17- Performance depends on neighbors — bad neighbors slow your site18- SSH access may be limited or unavailable — verify before assuming19- Cron jobs and background processes often restricted20- Fine for small sites and blogs — not for growing businesses2122## Platform Hosting (Vercel, Netlify, Railway, etc.)23- Free tiers have limits — check build minutes, bandwidth, function invocations24- Serverless functions have cold start latency — first request after idle is slow25- Vendor lock-in varies — static files portable, platform-specific features less so26- Preview deployments per branch are invaluable for review workflows27- Environment variables configured in dashboard — never commit secrets to repo2829## Database Considerations30- Most platform hosts don't include databases — need separate provider (PlanetScale, Supabase, Neon)31- Database location should match app location — cross-region latency hurts performance32- Connection pooling often required for serverless — direct connections exhaust limits33- Backups may or may not be included — verify and test restore process3435## Domain and DNS36- Hosting provider often offers DNS — but separating them gives flexibility37- Point nameservers to host: simpler setup, less control38- Point A/CNAME records: more control, slightly more complex39- SSL certificates usually automatic with modern hosts — verify HTTPS works after setup4041## Email Separation42- Web hosting and email hosting are different services — can use different providers43- Don't rely on free email with web hosting — often limited and unreliable44- Google Workspace, Zoho, or dedicated email providers are more reliable45- MX records for email don't affect web hosting4647## Backups48- Managed hosts usually include backups — verify frequency and retention49- Download periodic backups locally — host backups don't help if host goes away50- Know the restore process before you need it51- Database backups separate from file backups — need both5253## Cost Awareness54- Monthly vs yearly billing — annual often 20-40% cheaper but commits you55- Traffic spikes can trigger overage fees — understand the billing model56- Free tiers often enough for side projects — don't overpay for unused capacity57- Compare total cost including add-ons — base price rarely tells the whole story5859## Migration Readiness60- Keep content in portable formats — avoid excessive platform-specific features61- Document how the current setup works — needed when moving62- Export data regularly — don't assume you can always access it63- DNS propagation takes up to 48 hours — plan migrations with overlap6465## Common Mistakes66- Choosing by price alone — support quality matters when things break67- Not testing staging before production — preview environments prevent disasters68- Ignoring geographic location — hosting in US for European users adds latency69- Assuming backups exist — verify and test before you need them70- Overcomplicating for small sites — a blog doesn't need Kubernetes