From b866328abe6ce0fe80b90eac5a14ed987d927401 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Sat, 24 Dec 2022 19:31:39 +1100 Subject: [PATCH] fix: useSchemaOrg only on server --- packages/schema-org/src/index.ts | 2 +- playgrounds/nuxt3/app.vue | 11 +++-------- playgrounds/nuxt3/pages/index.vue | 1 + 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/schema-org/src/index.ts b/packages/schema-org/src/index.ts index e8af455..1f76244 100644 --- a/packages/schema-org/src/index.ts +++ b/packages/schema-org/src/index.ts @@ -24,5 +24,5 @@ export function useSchemaOrg(input?: any): any { nodes: input, }, ], - }) + }, { mode: 'server' }) } diff --git a/playgrounds/nuxt3/app.vue b/playgrounds/nuxt3/app.vue index 0787a53..074ca6d 100644 --- a/playgrounds/nuxt3/app.vue +++ b/playgrounds/nuxt3/app.vue @@ -25,14 +25,9 @@ useSchemaOrg([ telephone: '+1-781-555-1212', priceRange: '$', }), - // defineWebSite({ - // name: 'Harlan\'s Hamburgers', - // potentialAction: [ - // asSearchAction({ - // target: '/search?q={search_term_string}', - // }), - // ], - // }), + defineWebSite({ + name: 'Harlan\'s Hamburgers', + }), ]) name.value = 'Harlan\'s Hamburgers - Updated' diff --git a/playgrounds/nuxt3/pages/index.vue b/playgrounds/nuxt3/pages/index.vue index bd83ef0..0400abc 100644 --- a/playgrounds/nuxt3/pages/index.vue +++ b/playgrounds/nuxt3/pages/index.vue @@ -8,6 +8,7 @@ useHead({