Hi I have an existing Next JS project where i have integrated with Prismic using
in Next Js 9.2. it was easy to implement preview using PreviewSession and passing the request to options. However, I am running into issues upgrading project to nextjs 9.5 where getStaticProps does not have a request object.
I have reviewed this example https://github.com/vercel/next.js/blob/canary/examples/cms-prismic/lib/api.js
Similar to this example I have access to preview ref. However, I can not find out how to pass it to Prismic Client. Code similar to below:
Is there any way to do this where i can pass the ref manually rather then via request object on server side. Or I have to build our own fetch functions similar to the demo.