Skip to content

Commit 53bc443

Browse files
committed
refactor: update cache function
1 parent 957bd6a commit 53bc443

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151
"eslint-config-prettier": "^9.1.0",
5252
"eslint-plugin-prettier": "^5.1.3",
5353
"eslint-plugin-simple-import-sort": "^12.1.0",
54-
"next": "^15.3.5",
54+
"next": "^16",
5555
"prettier": "^3.3.2",
5656
"react": "^19.1.0",
5757
"react-dom": "^19.1.0",
5858
"tailwindcss": "^3.4.4",
5959
"typescript": "^5.5.2"
6060
},
6161
"peerDependencies": {
62-
"next": "^15.3.5 || ^16",
62+
"next": "^16",
6363
"react": "^19.1.0",
6464
"react-dom": "^19.1.0"
6565
},

src/zebra/revalidate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const revalidate = async (req: Request) => {
2727

2828
console.info('/api/revalidate', 'Revalidating document cache');
2929

30-
revalidateTag('document');
30+
revalidateTag('document', 'max');
3131

3232
return Response.json({ revalidated: true });
3333
};

0 commit comments

Comments
 (0)