NewFirst month of Starter or Pro for $1Your first month of Starter or Pro for just $1, then cancel anytimeSee pricing
Ranken logoRanken.io

Add a blog to Vercel at /blog

The short answer

Any site hosted on Vercel, whatever the framework, can serve a Ranken blog at /blog with two rewrites in vercel.json. Vercel proxies the blog at the edge, so it loads on your domain like the rest of the site.

Method
Two rewrites in vercel.json
Time
About 2 minutes
You need
A site hosted on Vercel
Ranken plan
Starter or Pro
yoursite.com/blog
/blog/*vercel.jsonRanken blog
/*Vercel site
Only /blog goes to Ranken. Every other page keeps working on Vercel, on the same domain.

How do I add a blog to Vercel?

Create your blog in Ranken and choose a /blog subfolder, then follow these steps. The examples use www.yoursite.com/blog. Your dashboard shows the same steps with your own address filled in, plus a prompt you can paste into an AI coding assistant.

  1. 1

    Add the rewrites to vercel.json

    Merge them into the existing rewrites array, above your other rules.

    vercel.json
    {
      "rewrites": [
        { "source": "/blog", "destination": "https://proxy.ranken.blog/your-blog" },
        { "source": "/blog/:path*", "destination": "https://proxy.ranken.blog/your-blog/:path*" }
      ]
    }
  2. 2

    Deploy

    Push and let Vercel redeploy.

Vercel proxies the blog at the edge.

What should you check before you start?

  • Keep the existing keys in vercel.json and place these two rules first.
  • If the project is Next.js, use the next.config rewrite instead of vercel.json.

Why put your Vercel blog at /blog instead of a subdomain?

A subfolder keeps every article on your main domain, so the links and authority each post earns build up in one place, next to your product or store pages. A subdomain such as blog.yoursite.com works too, but search engines can treat it more like a separate site. Ranken supports both, plus a custom domain.

Vercel blog questions

Which frameworks does this work with?

Any framework Vercel hosts, such as Astro, SvelteKit, Nuxt, Remix, Vite or plain HTML. For Next.js, the next.config rewrite is the cleaner option.

Where do Vercel rewrites go?

In vercel.json at the root of your project. Put them at the top of the rewrites array so they win over your other rules.

Add a blog to another platform

Steps checked . See all integrations

Your Vercel site, now with a blog that ranks

Ranken hosts the blog at /blog with SEO, schema, llms.txt and one-click indexing built into every post.