From 2f2175829e7979d494dc732d74fb5012d1f108b9 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 11 Apr 2026 10:08:31 +0200 Subject: [PATCH] chore: upgrade nuxt-og-image to v6 (#1857) --- app/app.vue | 6 +- ...faultImage.vue => DefaultImage.takumi.vue} | 4 +- app/pages/blog/[article].vue | 2 +- modules/bsky-comments.ts | 7 +- nuxt.config.ts | 4 - package.json | 5 +- pnpm-lock.yaml | 3479 ++++++++++++----- server/routes/rss.xml.get.ts | 4 +- test/e2e/ssr.spec.ts | 8 +- .../pages-image-for-1-linux.png | Bin 8211 -> 7913 bytes .../pages-image-for-blog-1-linux.png | Bin 8211 -> 7913 bytes ...ur-own-vue-rich-text-component-1-linux.png | Bin 33460 -> 32534 bytes ...-for-blog-contributing-to-nuxt-1-linux.png | Bin 28031 -> 26435 bytes ...eating-your-own-sitemap-module-1-linux.png | Bin 32455 -> 30927 bytes ...-blog-good-ux-and-giving-birth-1-linux.png | Bin 27450 -> 26563 bytes ...es-image-for-blog-introduction-1-linux.png | Bin 22194 -> 21285 bytes ...image-for-blog-open-invitation-1-linux.png | Bin 24748 -> 23295 bytes ...erless-functions-nuxt-zeit-now-1-linux.png | Bin 34369 -> 33712 bytes .../pages-image-for-talks-1-linux.png | Bin 8211 -> 7913 bytes .../pages-image-for-uses-1-linux.png | Bin 8211 -> 7913 bytes .../pages-image-for-work-1-linux.png | Bin 8211 -> 7913 bytes .../pages-renders-1-linux.png | Bin 37892 -> 34808 bytes test/unit/bundle.spec.ts | 15 +- 23 files changed, 2443 insertions(+), 1091 deletions(-) rename app/components/OgImage/{DefaultImage.vue => DefaultImage.takumi.vue} (91%) diff --git a/app/app.vue b/app/app.vue index b86ec447..a91083a2 100644 --- a/app/app.vue +++ b/app/app.vue @@ -24,14 +24,14 @@ import { links } from '#shared/utils/links' const route = useRoute() -defineOgImageComponent('DefaultImage', { +defineOgImage('DefaultImage', { date: '', title: 'roe.dev', tags: [], }) if (import.meta.server) { - prerenderRoutes(joinURL('/__og-image__/static', route.path, 'og.png')) + prerenderRoutes(joinURL('/_og/s', route.path, 'og.png')) } // TODO: interactive components within server components @@ -144,7 +144,7 @@ if (import.meta.server) { { property: 'og:url', content: url }, { property: 'og:image', - content: `https://roe.dev/__og-image__/static/og.png`, + content: `https://roe.dev/_og/s/og.png`, key: 'og:image', }, { property: 'og:image:width', content: '1200' }, diff --git a/app/components/OgImage/DefaultImage.vue b/app/components/OgImage/DefaultImage.takumi.vue similarity index 91% rename from app/components/OgImage/DefaultImage.vue rename to app/components/OgImage/DefaultImage.takumi.vue index faa64b11..054d017a 100644 --- a/app/components/OgImage/DefaultImage.vue +++ b/app/components/OgImage/DefaultImage.takumi.vue @@ -29,7 +29,7 @@ defineProps({
Published
-
+
{{ date }}
@@ -40,7 +40,7 @@ defineProps({
Tags
-
+