Skip to content

Commit

Permalink
chore: broken hash generation
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Feb 25, 2025
1 parent bc47b1f commit 524ad7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/util/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { withoutBase, withoutTrailingSlash } from 'ufo'
export function fetchIsland(e: H3Event, component: string, props: Record<string, any>): Promise<NuxtIslandResponse> {
// using Nuxt Island, generate the og:image HTML
const hashId = hash([component, props])
return e.$fetch<NuxtIslandResponse>(`/__nuxt_island/${component}_${hashId}.json`, {
return e.$fetch<NuxtIslandResponse>(`/__nuxt_island/${component}_${hashId.replace('_', '-')}.json`, {
params: {
props: JSON.stringify(props),
},
Expand Down

0 comments on commit 524ad7d

Please sign in to comment.