Sitelet https://github.com/nuxt/nuxt/commit/82dcd6a31
Skip to content

Commit 82dcd6a

Browse files
committed
fix(nitro): use statusCode for nitro v2 compatibility
1 parent 3a8bb00 commit 82dcd6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/nitro-server/src/runtime/handlers

‎packages/nitro-server/src/runtime/handlers/island.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async function getIslandContext (event: H3Event): Promise<NuxtIslandContext> {
159159
// the actual (name, props, context) is rejected.
160160
const expectedHash = computeIslandHash(componentName, filteredProps, clientContext, undefined)
161161
if (!hashId || hashId !== expectedHash) {
162-
throw createError({ status: 400, statusMessage: 'Invalid island request hash' })
162+
throw createError({ statusCode: 400, statusMessage: 'Invalid island request hash' })
163163
}
164164

165165
return {

0 commit comments

Comments
 (0)