Deploy a Docusaurus Static Site
Docusaurus is a popular open-source framework for documentation websites. You can deploy a Docusaurus project on Render as a static site in a few clicks.
Render static sites are served over a lightning-fast global CDN, come with fully managed TLS certificates, and support custom domains out of the box.
-
In the Render Dashboard, click New > Static Site and connect your Docusaurus repo.
-
Enter the following settings, then click Deploy Static Site.
Build Command npm install && npm run buildPublish Directory ./build -
In
docusaurus.config.js, seturlto theonrender.comURL shown on your static site's dashboard page. SetbaseUrlto/to serve the site at the root of that domain. Commit and push the changes to trigger a new deploy.
Open your site's URL after the deploy succeeds.
If you need to customize the version of Node.js used for your site, see Specifying a Node Version.