Skip to content

Commit 0ea6296

Browse files
committedFeb 26, 2025
fix: Unhead v2 support
1 parent d3fd18b commit 0ea6296

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎package.json

+2
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@
6464
"test:chrome": "HAS_CHROME=true vitest"
6565
},
6666
"peerDependencies": {
67+
"unhead": "^1.0.0 || ^2.0.0",
6768
"unstorage": "^1.0.0"
6869
},
6970
"dependencies": {
7071
"@nuxt/devtools-kit": "2.1.0",
7172
"@nuxt/kit": "^3.15.4",
7273
"@resvg/resvg-js": "^2.6.2",
7374
"@resvg/resvg-wasm": "^2.6.2",
75+
"@unhead/ssr": "^1.11.20",
7476
"@unocss/core": "^66.0.0",
7577
"@unocss/preset-wind3": "^66.0.0",
7678
"chrome-launcher": "^1.1.2",

‎src/runtime/server/og-image/templates/html.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { FontConfig, OgImageRenderEventContext } from '../../../types'
22
import { theme } from '#og-image-virtual/unocss-config.mjs'
33
import { renderSSRHead } from '@unhead/ssr'
4-
import { createHeadCore } from '@unhead/vue'
54
import { createError } from 'h3'
5+
import { createHeadCore } from 'unhead'
66
import { normaliseFontInput, useOgImageRuntimeConfig } from '../../../shared'
77
import { fetchIsland } from '../../util/kit'
88
import { applyEmojis } from '../satori/transforms/emojis'

0 commit comments

Comments
 (0)
Please sign in to comment.