Skip to content

Commit

Permalink
fix: useSchemaOrg only on server
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 24, 2022
1 parent 841a0cb commit b866328
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/schema-org/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export function useSchemaOrg(input?: any): any {
nodes: input,
},
],
})
}, { mode: 'server' })
}
11 changes: 3 additions & 8 deletions playgrounds/nuxt3/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions playgrounds/nuxt3/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ useHead({
</script>
<template>
<div>
<SchemaOrgWebPage title="Hello world" />
<h2 class="text-3xl mb-5">
Money can't buy happiness, but it can buy Harlan's Hamburgers.
</h2>
Expand Down

0 comments on commit b866328

Please sign in to comment.