Skip to content

Commit

Permalink
feat: explicitly add force-cache option to getResource in basic starter
Browse files Browse the repository at this point in the history
  • Loading branch information
backlineint committed Nov 19, 2024
1 parent 864686c commit c41da4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions starters/basic-starter/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async function getNode(slug: string[]) {

const resource = await drupal.getResource<DrupalNode>(type, uuid, {
params,
cache: "force-cache",
next: {
revalidate: 3600,
// Replace `revalidate` with `tags` if using tag based revalidation.
Expand Down

0 comments on commit c41da4f

Please sign in to comment.