Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs: Add next option custom fetch options #855

Open
christophby opened this issue Sep 13, 2024 · 1 comment
Open

Update docs: Add next option custom fetch options #855

christophby opened this issue Sep 13, 2024 · 1 comment
Labels
docs [Issue] Improvements or additions to documentation

Comments

@christophby
Copy link

christophby commented Sep 13, 2024

In the Nextjs playground there's an example of using the next object as a custom fetch option.

 const res = await storyblokApi.get(
    `cdn/stories/home`,
    { version: 'draft' },
    {
      // cache: 'no-store',
      next: {
        revalidate: 3600,
      },
    }
  )

This should be added to the docs.

@alvarosabu alvarosabu added the docs [Issue] Improvements or additions to documentation label Sep 16, 2024
@alvarosabu
Copy link
Contributor

Thanks for raising this @christophby I just shared it with the docs team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs [Issue] Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants