You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been labeled as a bug since it was created using the 🚨 Bug Report Template.
Hi there, thank you so much for the report!
Following our Maintenance Process, we will review your bug report and get back to you next Wednesday. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue includes the following:
Information about your environment and packages you use (Node.js version, package names and their versions, etc.) Feel free to attach a copy of your package.json file.
Any troubleshooting steps you already went through
A minimal reproduction of the issue, and/or instructions on how to reproduce it
If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to open a pull request addressing it. Check out our quick start guide for a simple contribution process.
If you think your issue is a question (not a bug) and would like quicker support, please close this issue and forward it to an appropriate section on our community forum: https://community.prismic.io
Hi @vvopenka, the next options are specific to Next.js, so we'd like to keep it out of the general @prismicio/client package.
Luckily, installing @prismicio/next and using it in your project will fix this issue (see these lines of code). @prismicio/next should be used in your Next.js project for content previews, <PrismicNextLink>, and <PrismicNextImage>.
Could you give that a try and let me know if that fixes the issue? I'm going to close this issue since it should be working, but we can re-open it if the issue still exists.
Versions
Reproduction
When I'm trying to initialize client acoarding to the documentation: https://prismic.io/docs/fetch-data-nextjs#caching-with-the-app-router
I keep on getting an error: Type '{ next: { revalidate: number; }; }' is not assignable to type 'RequestInitLike'.
It seems like it's missing in the type:
prismic-client/src/createClient.ts
Line 113 in bd55071
Would it be possible to add it? Or is there a way to define next.revalidate in typescript?
Steps to reproduce
Create a client using the documentation in next.js in typescript.
What is expected?
I should be able to define next.revalidate and next.tags.
What is actually happening?
The code above fails to compile in typescript.
The text was updated successfully, but these errors were encountered: