Custom Subdirectory
Vercel
Host documentation at a subpath using Vercel
1
Move your docs files
Edit your file structure so that all your files are within a folder which is your custom subpath. So if you want to host your docs at /docs
you would do the following:
2
Configure your vercel.json
In your main website add the following rewrites to your vercel.json
.
For more information, you can also refer to Vercel’s offical guide on rewrites: Project Configuration: Rewrites