The `vercel.json` File

What this file does

It is a required file for deploying your website from GitHub to Vercel. It is created automatically when the site is generated, and you can modify it later if needed.

In most cases, you do not need to touch it.

The vercel.json file

Important rule explanations

"cleanUrls": true: controls whether page URLs show the `.html` suffix. `true` removes the suffix and `false` keeps it. If you change this, you also need to update internal links and `sitemap.xml`.

"source": "/signup", "destination": "xxx", "statusCode": 308: `destination` is the URL users should go to when they click the `/signup` button, which is your target affiliate link. `statusCode` means the redirect uses HTTP `308`.

"source": "/(.*)", "destination": "/": this rule makes all 404 pages display your homepage content instead, which can improve user experience and SEO performance.

Let's Build Beautiful Affiliate Sites

Start Building Beautiful Affiliate Site Networks