Skip to content

Commit

Permalink
doc: fix Unhead Plugin link and document properly
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 21, 2023
1 parent 29520ab commit a8b3a01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/content/1.usage/2.composables/2.use-server-head.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ It can also be useful for rendering tags which wouldn't be possible to render cl
dynamic imports `import('~/assets/my-file.png?url)`.


## Optional: Install Plugin
### Tree Shaking

To get avoid bundling `useServerHead` to the client, you can install the [Unhead Vite Plugin](/guide/getting-started/vite-plugin).
You can tree shake the `useServerHead` composable in most cases as robots will only need the initial SSR response.

For Nuxt, this is taken care of for you. For other implementations, you will need to use the [Unhead Plugin](/plugins/plugins/vite-plugin).

## Caveats

Expand Down
6 changes: 5 additions & 1 deletion docs/content/1.usage/2.composables/3.use-seo-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ useServerSeoMeta({
})
```

Make sure to use the [Unhead Vite Plugin](/guide/getting-started/vite-plugin)) with it.
### Tree Shaking

You can tree shake the `useServerSeoMeta` composable in most cases as robots will only need the initial SSR response.

For Nuxt, this is taken care of for you. For other implementations, you will need to use the [Unhead Plugin](/plugins/plugins/vite-plugin).

## How it works

Expand Down

0 comments on commit a8b3a01

Please sign in to comment.