@dargmuesli/nuxt-vio 13.2.0 → 13.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,8 @@ export const useAppLayout = () => {
11
11
  })
12
12
 
13
13
  // TODO: convert to `useServerHeadSafe` (https://github.com/unjs/unhead/issues/221)
14
- useServerSeoMeta({
14
+ // adding `Server` leads incorrect title template on hydration
15
+ useSeoMeta({
15
16
  titleTemplate: (title) =>
16
17
  TITLE_TEMPLATE({
17
18
  siteName: siteConfig.name,
@@ -4,14 +4,13 @@ export const useHeadDefault = (input: UseSeoMetaInput) => {
4
4
  const siteConfig = useSiteConfig()
5
5
 
6
6
  const description = input.description || siteConfig.description
7
- const title = input.title
8
- ? TITLE_TEMPLATE({
9
- siteName: siteConfig.name,
10
- title: input.title.toString(),
11
- })
12
- : siteConfig.name
7
+ const title = TITLE_TEMPLATE({
8
+ siteName: siteConfig.name,
9
+ title: input.title?.toString(),
10
+ })
13
11
 
14
- useServerSeoMeta({
12
+ // can't be server side or it won't update on the client
13
+ useSeoMeta({
15
14
  ...(description
16
15
  ? {
17
16
  description,
package/nuxt.config.ts CHANGED
@@ -29,6 +29,7 @@ export default defineNuxtConfig(
29
29
  name: 'layout',
30
30
  },
31
31
  },
32
+ compatibilityDate: '2024-04-03',
32
33
  ...(process.env.NUXT_PUBLIC_SITE_URL
33
34
  ? {}
34
35
  : {
package/package.json CHANGED
@@ -116,5 +116,5 @@
116
116
  "start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
117
117
  },
118
118
  "type": "module",
119
- "version": "13.2.0"
119
+ "version": "13.2.1"
120
120
  }