Deploy Docusaurus on Light Cloud - detected from docusaurus.config, built to build, and served from the global CDN with free bandwidth.
Deploy Docusaurus
Docusaurus is detected from its dependency and docusaurus.config.js, and deploys as a static site: npm run build fills build/, and the CDN serves it with free bandwidth. The usual docs-site setup - versioned docs, blog, search plugins - is all just build output.
Build#
- Output directory:
build- override in Build settings if your config moves it. - Install: follows your lockfile - see How detection works.
- Set
urlindocusaurus.config.jsto your custom domain so canonical URLs and sitemaps come out right.
Previews for docs reviews#
Every branch gets its own preview environment - a docs change can be reviewed rendered, at its own URL, before it merges. This is the whole preview workflow at its most useful.
Broken links fail loudly#
Docusaurus checks internal links during the build; a broken link can fail it. That failure lands in the build logs with the offending lines extracted - fix and push.