File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
starters/basic-starter/app Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,19 @@ async function getNode(slug: string[]) {
2727
2828 const type = translatedPath . jsonapi ?. resourceName !
2929 const uuid = translatedPath . entity . uuid
30+ const tag = `${ translatedPath . entity . type } :${ translatedPath . entity . id } `
3031
3132 if ( type === "node--article" ) {
3233 params . include = "field_image,uid"
3334 }
3435
3536 const resource = await drupal . getResource < DrupalNode > ( type , uuid , {
3637 params,
38+ next : {
39+ revalidate : 3600 ,
40+ // Replace `revalidate` with `tags` if using tag based revalidation.
41+ // tags: [tag],
42+ } ,
3743 } )
3844
3945 if ( ! resource ) {
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ export default async function Home() {
1717 include : "field_image,uid" ,
1818 sort : "-created" ,
1919 } ,
20+ next : {
21+ revalidate : 3600 ,
22+ } ,
2023 }
2124 )
2225
You can’t perform that action at this time.
0 commit comments