Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e53f42

Browse files
Update README.md
1 parent 909fdda commit 4e53f42

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,11 +742,21 @@ $ docsify serve docs
742742

743743
Serves as [localhost:3000/](http://localhost:3000/), or a different port if there is already a _Docsify_ server running.
744744

745+
This uses is the main use for Docsify - an `index.html` page is served, the JS is loaded on the frontend and then markdown pages are requested and converted to HTML as needed. It is a **Single-Page Application**, so will work great from a user perspective but will score low on search engines. Even though the SEO crawlers can handle JavaScript, there is limited "crawl budget" for a JavaScript-based SPA so this means less of your site is crawled or your site is rated poorly. Constrast with the option below.
746+
745747
#### `docsify start`
746748

747749
> Server for SSR
748750

749-
This command is for Server-Side Rendering. I haven't tried this yet.
751+
This command is for Server-Side Rendering.
752+
753+
This runs a Node.js server which pre-renders then serves HTML to the browser. This should make almost no difference to the end-user.
754+
755+
This approach is ideal for scoring higher on search engines, as the pre-rendered HTML is easy for a crawler to read and it does not use up the "crawl budget".
756+
757+
This command is easy to run locally.
758+
759+
Unfortunately this solution does **not** work on static site solutions like Github Pages or Netlify. The Docsify docs recommend using the `now` command to publish a Node.js app for free to [vercel.com/](https://vercel.com/) (previously [zeit.co](https://zeit.co/)).
750760

751761

752762
## Static site vs SPA

0 commit comments

Comments
 (0)