diff --git a/.storybook/preview.ts b/.storybook/preview.ts index a31da335cd..20ed0e0b15 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -18,7 +18,7 @@ globalThis['__NUXT_COLOR_MODE__'] ??= { removeColorScheme: fn(), } // @ts-expect-error - dynamic global name -globalThis.defineOgImageComponent = fn() +globalThis.defineOgImage = fn() // Subscribe to locale changes from storybook-i18n addon (once, outside decorator) let currentI18nInstance: any = null diff --git a/app/app.vue b/app/app.vue index 5916e3e328..ccba3552ee 100644 --- a/app/app.vue +++ b/app/app.vue @@ -125,6 +125,10 @@ if (import.meta.client) { useEventListener(document, 'click', handleModalLightDismiss) } } + +// title and description will be inferred +// this will be overridden by upstream pages that use different templates +defineOgImage('Page.takumi', {}, { alt: 'npmx — a fast, modern browser for the npm registry' })