Skip to content

Commit d15e55a

Browse files
committed
fix 405 case
1 parent f46975a commit d15e55a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/next/src/server/lib/router-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,10 @@ export async function initialize(opts: {
435435
return await invokeRender(
436436
url.parse('/405', true),
437437
'/405',
438-
handleIndex
438+
handleIndex,
439+
{
440+
invokeStatus: 405,
441+
}
439442
)
440443
}
441444

0 commit comments

Comments
 (0)