Vercel + Cloudflare
Deployment Guide
Step-by-step instructions to deploy the Bergsify website to Vercel and connect www.bergsify.com via Cloudflare DNS — including build configuration, DNS records, SSL setup, and a pre-launch checklist.
Part 1 — Vercel Deployment
Import the GitHub repository into Vercel
Go to vercel.com/new and click Import Git Repository. Select the bergsify-website private repo from your GitHub account.
vercel.json file already committed to the repo will be auto-detected — Vercel will pre-fill all build settings automatically.Confirm build settings
Verify the following settings are applied. They should be pre-filled from vercel.json — adjust only if Vercel did not detect them.
| Setting | Value |
|---|---|
| Framework Preset | Vite |
| Build Command | pnpm build |
| Output Directory | dist/public |
| Install Command | pnpm install |
The vercel.json committed to the repo root contains these values. For reference:
{
"buildCommand": "pnpm build",
"outputDirectory": "dist/public",
"installCommand": "pnpm install",
"framework": "vite",
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}Deploy and verify the preview URL
Click Deploy. The first build takes approximately 2 minutes. Once complete, Vercel will provide a preview URL (e.g., bergsify-website.vercel.app).
Open the preview URL and confirm the site loads correctly before proceeding to the custom domain step.
Add your custom domain in Vercel
Navigate to your Vercel project → Settings → Domains. Add www.bergsify.com. Vercel will display the CNAME target value you need for Cloudflare — it will be cname.vercel-dns.com.
Part 2 — Cloudflare DNS Configuration
Add CNAME records in Cloudflare
In your Cloudflare dashboard, select the bergsify.com zone and navigate to DNS → Records. Add the following two records:
| Type | Name | Target / Value | Proxy Status |
|---|---|---|---|
| CNAME | www | cname.vercel-dns.com | OFF — grey cloud |
| CNAME | @ | cname.vercel-dns.com | OFF — grey cloud |
Create a root domain redirect rule
Navigate to Rules → Redirect Rules → Create Rule. This rule redirects bare bergsify.com to www.bergsify.com at Cloudflare's edge.
hostname eq bergsify.comconcat("https://www.bergsify.com", http.request.uri.path)Configure SSL/TLS encryption mode
In Cloudflare, navigate to SSL/TLS → Overview. Set the encryption mode to Full (not Full Strict) during initial setup.
Verify domain and SSL in Vercel
Return to your Vercel project → Settings → Domains. The domain status for www.bergsify.com should show Valid Configuration within a few minutes of adding the DNS records.
DNS propagation typically takes 1–5 minutes with Cloudflare, but can take up to 24 hours in rare cases. Once valid, Vercel will automatically provision and renew the SSL certificate.
https://www.bergsify.com loads with a padlock and no SSL warnings, the deployment is complete.Pre-Launch Checklist
Check off each item as you complete it. Your progress is saved in this browser session.
▲Vercel
☁Cloudflare
✓Final Checks
Additional Notes
◈ Image Assets on Manus CDN
The hero background, generated visuals, and product screenshots are currently served from Manus CDN URLs. These URLs will continue to work correctly on Vercel. However, they are tied to this Manus project — if the project is ever deleted, those image URLs will break. For full long-term ownership, re-upload the assets to Cloudflare R2 or an S3-compatible bucket and update the image URLs in the source code.
◈ Automatic Deployments
Once connected, every push to the main branch will trigger a new Vercel deployment automatically. Use feature branches for development and staging previews — Vercel generates a unique preview URL for every pull request, allowing you to review changes before merging to production.
◈ Re-enabling Cloudflare Proxy (Optional)
After Vercel has successfully renewed the SSL certificate at least once (typically within 24 hours of initial setup), you may optionally re-enable the Cloudflare proxy (orange cloud) on the CNAME records and upgrade SSL/TLS to Full (Strict). This restores Cloudflare's DDoS protection, WAF, and edge caching on top of Vercel's infrastructure.