deploy-your-site.mdx 702 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. sidebar_position: 5
  3. ---
  4. # Deploy your site
  5. Docusaurus is a **static-site-generator** (also called **[Jamstack](https://jamstack.org/)**).
  6. It builds your site as simple **static HTML, JavaScript and CSS files**.
  7. ## Build your site
  8. Build your site **for production**:
  9. ```bash
  10. npm run build
  11. ```
  12. The static files are generated in the `build` folder.
  13. ## Deploy your site
  14. Test your production build locally:
  15. ```bash
  16. npm run serve
  17. ```
  18. The `build` folder is now served at [http://localhost:3000/](http://localhost:3000/).
  19. You can now deploy the `build` folder **almost anywhere** easily, **for free** or very small cost (read the **[Deployment Guide](https://docusaurus.io/docs/deployment)**).