Docs/Subfolder hosting

Subfolder on Vercel

Serve the blog at yoursite.com/blog from any project hosted on Vercel — one vercel.json.

First enable Settings → Subfolder hosting in the dashboard. Then add this to the project root — it works for any framework Vercel hosts.

vercel.json{ "rewrites": [ { "source": "/blog", "destination": "https://you.blogcms.app/_subfolder/index.html" }, { "source": "/blog/:path*", "destination": "https://you.blogcms.app/_subfolder/:path*" } ], "redirects": [ { "source": "/blog/", "destination": "/blog", "permanent": true } ] }
  • Deploy, publish the blog once, then hit Verify setup in Settings → Subfolder hosting.
  • Rewrites proxy server-side — readers stay on your domain, and search engines see one site.