diff --git a/.env.example b/.env.example index beff9e50c4..60e33c50b0 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ #secure password, can use openssl rand -hex 32 NUXT_SESSION_PASSWORD="" -#HMAC secret for image proxy URL signing, can use openssl rand -hex 32 +#HMAC secret for image-proxy and OG image URL signing, can use openssl rand -hex 32 NUXT_IMAGE_PROXY_SECRET="" \ No newline at end of file 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 510fb719ed..34fc1d5c01 100644 --- a/app/app.vue +++ b/app/app.vue @@ -127,6 +127,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' })