Skip to content

Commit

Permalink
fix: minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
backlineint committed Nov 8, 2024
1 parent 4693997 commit 4b6eff1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion starters/basic-starter/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function getNode(slug: string[]) {

const type = translatedPath.jsonapi?.resourceName!
const uuid = translatedPath.entity.uuid
const tag = `${translatedPath.entity.type}:${translatedPath.entity.id}`

if (type === "node--article") {
params.include = "field_image,uid"
Expand All @@ -37,7 +38,7 @@ async function getNode(slug: string[]) {
next: {
revalidate: 3600,
// Replace `revalidate` with `tags` if using tag based revalidation.
// tags: [`${translatedPath.entity.type}:${translatedPath.entity.id}`],
// tags: [tag],
},
})

Expand Down

0 comments on commit 4b6eff1

Please sign in to comment.