Skip to content

Commit 4b6eff1

Browse files
committed
fix: minor code cleanup
1 parent 4693997 commit 4b6eff1

File tree

1 file changed

+2
-1
lines changed
  • starters/basic-starter/app/[...slug]

1 file changed

+2
-1
lines changed

starters/basic-starter/app/[...slug]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ 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"
@@ -37,7 +38,7 @@ async function getNode(slug: string[]) {
3738
next: {
3839
revalidate: 3600,
3940
// Replace `revalidate` with `tags` if using tag based revalidation.
40-
// tags: [`${translatedPath.entity.type}:${translatedPath.entity.id}`],
41+
// tags: [tag],
4142
},
4243
})
4344

0 commit comments

Comments
 (0)