# Server-Side Rendering See https://docsify.now.sh Repo in https://github.com/docsifyjs/docsify-ssr-demo ## Why SSR? - Better SEO - Feeling cool ## Quick start Install `now` and `docsify-cli` in your project. ```bash npm i now docsify-cli -D ``` Edit `package.json`. The below assumes the documentation is in the `./docs` subdirectory. ```json { "name": "my-project", "scripts": { "start": "docsify start . -c ssr.config.js", "deploy": "now -p" }, "files": [ "docs" ], "docsify": { "config": { "basePath": "https://docsify.js.org/", "loadSidebar": true, "loadNavbar": true, "coverpage": true, "name": "docsify" } } } ``` !> The `basePath` just like webpack `publicPath`. We can use local or remote files. We can preview the local site to see if it works. ```bash npm start # open http://localhost:4000 ``` Publish it! ```bash now -p ``` Now, you have support for SSR. ## Custom template You can provide a template for an entire page's HTML, such as ```html