vercel-netlify-cms-github icon indicating copy to clipboard operation
vercel-netlify-cms-github copied to clipboard

How use it with Next 13 (App Router)

Open kaiofelipejs opened this issue 2 years ago • 1 comments

Hello! I've some problems using this lib with next 13 using app router. The usage mode described in README.md, doesn't work properly. I tried use as API Route and Route Handler but don't work as well.

Examples:

API routes

image

In this way i receive 404 page.

Route Handlers

image

In this way i receive this error:

auth host=undefined
- error TypeError: res.writeHead is not a function

I'm not sure if is correct pass NextResponse


What I'm doing wrong?

Thanks.

kaiofelipejs avatar Sep 27 '23 14:09 kaiofelipejs

I'm struggling with the same thing, did you ever figure it out?

Schotsl avatar Apr 23 '24 07:04 Schotsl