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

chore: add next 14 revalidate example [TOL-1602] #436

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

2wce
Copy link
Contributor

@2wce 2wce commented Nov 23, 2023

Added an example for live preview using next 14

  • instead of reloading the path, revalidate the cache for the path and update that way

@2wce 2wce requested a review from a team November 23, 2023 09:33
@2wce 2wce self-assigned this Nov 23, 2023
@2wce 2wce changed the title chore: add next 14 revalidate example chore: add next 14 revalidate example [TOL-1602] Nov 23, 2023
@@ -0,0 +1,47 @@
# Next.js GraphQL Contentful live preview SDK example

This is an example project that demonstrates how to use the `@contentful/live-preview` SDK with a Next.js application that runs only on the server.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some more information how this example differs from the other Next.js examples? Right now it is not very clear to me what the benefits are of this one vs the other examples

Maybe even adding that to the general READ me in the Next js section

@chrishelgert
Copy link
Contributor

Could you give is a quick intro on how it works in the PH? :)

@2wce 2wce requested a review from a team November 29, 2023 13:21
@2wce 2wce enabled auto-merge (squash) February 7, 2024 10:40
@2wce 2wce merged commit f0b2f99 into main Feb 7, 2024
5 checks passed
@2wce 2wce deleted the feat/add-next-14-example branch February 7, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants