Using edge runtime in nextjs for prismic preview

Hey ! I would like to know if it is possible to use the edge runtime on nextjs for the preview api route used by prismic ?

Thanks

Hello @arthur.muchir, thanks for reaching out. At the moment we don't have any resources that use this setup. Have you encountered an issue while trying this out?

Hi @Pau.
After some research, I find that it is not possible (at the moment) without rewriting all the setPreviewData function of nextjs, because the NextResponse class available in edge function does not contain such method (doc here).