antfu-collective / vite-ssg

Static site generation for Vue 3 on Vite
MIT License
1.32k stars 136 forks source link

Make the Head by useHead static as well #305

Closed kecrily closed 1 year ago

kecrily commented 1 year ago

Clear and concise description of the problem

Currently, if you use useHead() to define the title and meta tags, they are still dynamically after SSG.

Suggested solution

Make the contents of useHead() static like the rest of the section.

Alternative

No response

Additional context

No response

Validations

yswnldy commented 1 year ago

from @vueuse/head v0.9.1 to the latest version, manage the document-head in vite-ssg build is not working.

@vueuse/head v0.9.0、v0.8.2、v0.7.13 is working.

you can try lower version.

AxyLm commented 1 year ago

+1

kecrily commented 1 year ago

fixed by https://github.com/antfu/vite-ssg/pull/312