We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05b16f5 commit b4fdb5eCopy full SHA for b4fdb5e
src/runtime/server/og-image/context.ts
@@ -91,8 +91,8 @@ export async function resolveContext(e: H3Event): Promise<H3Error | OgImageRende
91
.replace(`/__og-image__/static`, '')
92
.replace(`/og.${extension}`, ''),
93
)
94
- if (queryParams._query)
95
- basePath = withQuery(basePath, JSON.parse(queryParams._query))
+ if (queryParams._query && typeof queryParams._query === 'object')
+ basePath = withQuery(basePath, queryParams._query)
96
const isDebugJsonPayload = extension === 'json' && runtimeConfig.debug
97
const key = resolvePathCacheKey(e, basePath)
98
let options: OgImageOptions | null | undefined = queryParams.options as OgImageOptions
0 commit comments