Typescript Nextjs13 Method Not Allowed 405 Code While Redirecting

Typescript Nextjs13 Method Not Allowed 405 Code While Redirecting