Skip to content

Commit 63e8bc1

Browse files
authored
Add a profile to revalidateTag calls to avoid deprecation warnings (#1080)
1 parent ae3d43d commit 63e8bc1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/overrides/d1-tag-next/app/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { revalidatePath, revalidateTag } from "next/cache";
44

55
export async function revalidateTagAction() {
6-
revalidateTag("date");
6+
revalidateTag("date", { expire: 0 });
77
}
88

99
export async function revalidatePathAction() {

examples/overrides/kv-tag-next/app/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { revalidatePath, revalidateTag } from "next/cache";
44

55
export async function revalidateTagAction() {
6-
revalidateTag("date");
6+
revalidateTag("date", { expire: 0 });
77
}
88

99
export async function revalidatePathAction() {

examples/overrides/static-assets-incremental-cache/app/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { revalidatePath, revalidateTag } from "next/cache";
44

55
export async function revalidateTagAction() {
6-
revalidateTag("date");
6+
revalidateTag("date", { expire: 0 });
77
}
88

99
export async function revalidatePathAction() {

0 commit comments

Comments
 (0)