Skip to content

Commit

Permalink
docs(quick-start): fix install snippet not rendering
Browse files Browse the repository at this point in the history
vuepress build does not prerender code-blocks correctly. fixed by surrounding it with a ClientOnly
block to force it to be rendered dynamically.
See vuejs/vuepress#2711

fix #4
  • Loading branch information
TimoBechtel committed Jan 11, 2021
1 parent 2011f7b commit 33d4667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Instead it is recommended to use a bundler, like [RollupJS](https://rollupjs.org

For both client and server:

<ClientOnly>
<code-group>
<code-block title="YARN">
```bash
Expand All @@ -25,7 +26,9 @@ yarn add socketdb
npm install socketdb
```
</code-block>

</code-group>
</ClientOnly>

## Setup Server

Expand Down

0 comments on commit 33d4667

Please sign in to comment.