Vitepress site deploying to /docs subfolder #4557
-
I'm deploying my site to Cloudflare using exactly the steps here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-vitepress-site/ Everything works great, except the site is deployed to a /docs subfolder. I want to deploy to root. I tried adding "base:'./'," to my config, but no luck. Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What's your project structure like? If your markdown files are inside docs then you need to set |
Beta Was this translation helpful? Give feedback.
What's your project structure like? If your markdown files are inside docs then you need to set
npx vitepress build docs
as build command anddocs/.vitepress/dist
as build directory. Remove custom base. Relative bases are not supported and can mess up the output.