Skip to content

Commit 809c97a

Browse files
committed
chore(og-image): upgrade to nuxt-og-image 6.3.4 + takumi rc.17
- Bump nuxt-og-image 6.2.6 → 6.3.4 - Bump @takumi-rs/core, @takumi-rs/wasm 1.0.0-beta.20 → 1.0.0-rc.17 - Enable security.strict (drops maxQueryParamSize, now covered) - Reuse NUXT_IMAGE_PROXY_SECRET for OG URL signing to avoid a second secret Caching verified: runtimeCacheStorage defaults to nitro `cache` storage, which modules/cache.ts maps to vercel-runtime-cache on Vercel when RUNTIME_CACHE is set. Edge caching is handled by the ISR route rule at `/_og/d/**` (24h). nuxt-og-image defaults cacheMaxAgeSeconds to 72h.
1 parent 8f545f7 commit 809c97a

File tree

6 files changed

+210
-505
lines changed

6 files changed

+210
-505
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#secure password, can use openssl rand -hex 32
22
NUXT_SESSION_PASSWORD=""
33

4-
#HMAC secret for image proxy URL signing, can use openssl rand -hex 32
4+
#HMAC secret for image-proxy and OG image URL signing, can use openssl rand -hex 32
55
NUXT_IMAGE_PROXY_SECRET=""

lunaria/components.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,13 @@ const LocaleDetails = (status: I18nStatus, locale: Locale): string => {
135135
)}
136136
<br />
137137
<br />
138-
${missingKeys.length > 0
139-
? html`${MissingKeysList(missingKeys)}`
140-
: html` <p>This translation is complete, amazing job! 🎉</p> `}
138+
${
139+
missingKeys.length > 0
140+
? html`${MissingKeysList(missingKeys)}`
141+
: html`
142+
<p>This translation is complete, amazing job! 🎉</p>
143+
`
144+
}
141145
</details>
142146
`
143147
}
@@ -364,10 +368,12 @@ function SvgLocaleSummary(
364368
>${label} (${lang})</text
365369
>
366370
<text x="0" y="26" font-size="9" fill="#999">
367-
${missingFiles.length == 0 && outdatedFiles.length == 0
368-
? '100% complete, amazing job! 🎉'
369-
: html`${doneLength} done, ${outdatedFiles.length} outdated, ${missingFiles.length}
370-
missing`}
371+
${
372+
missingFiles.length == 0 && outdatedFiles.length == 0
373+
? '100% complete, amazing job! 🎉'
374+
: html`${doneLength} done, ${outdatedFiles.length} outdated, ${missingFiles.length}
375+
missing`
376+
}
371377
</text>
372378
<rect x="0" y="34" width="${barWidth}" height="8" fill="#999" opacity="0.25"></rect>
373379
<rect x="0" y="34" width="${outdatedWidth}" height="8" fill="#fb923c"></rect>

lunaria/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export const BaseStyles = html`
55
:root {
66
/** Fonts */
77
--ln-font-fallback:
8-
-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
9-
Apple Color Emoji, Segoe UI Emoji;
8+
-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji,
9+
Segoe UI Emoji;
1010
--ln-font-body: 'Geist', 'IBM Plex Sans Arabic', var(--ln-font-fallback);
1111
--ln-font-mono: 'Geist Mono', 'IBM Plex Sans Arabic', monospace;
1212

nuxt.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ export default defineNuxtConfig({
296296
ogImage: {
297297
enabled: !isStorybook,
298298
security: {
299-
maxQueryParamSize: 2048,
299+
strict: true,
300+
// Reuse image-proxy HMAC secret to avoid managing a second secret
301+
secret: process.env.NUXT_IMAGE_PROXY_SECRET,
300302
},
301303
},
302304

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
"@shikijs/langs": "4.0.2",
7070
"@shikijs/markdown-exit": "4.0.2",
7171
"@shikijs/themes": "4.0.2",
72-
"@takumi-rs/core": "1.0.0-beta.20",
73-
"@takumi-rs/wasm": "1.0.0-beta.20",
72+
"@takumi-rs/core": "1.0.0-rc.17",
73+
"@takumi-rs/wasm": "1.0.0-rc.17",
7474
"@unocss/nuxt": "66.6.7",
7575
"@unocss/preset-wind4": "66.6.7",
7676
"@upstash/redis": "1.37.0",
@@ -91,7 +91,7 @@
9191
"marked": "17.0.4",
9292
"module-replacements": "2.11.0",
9393
"nuxt": "4.3.1",
94-
"nuxt-og-image": "6.2.6",
94+
"nuxt-og-image": "6.3.4",
9595
"ofetch": "1.5.1",
9696
"ohash": "2.0.11",
9797
"perfect-debounce": "2.1.0",

0 commit comments

Comments
 (0)