Skip to content

Commit 2bf2543

Browse files
refactor: change the revalidation time for extension page
1 parent bf5fcb3 commit 2bf2543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/extension/[id]/page.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { notFound } from "next/navigation";
1818
import { HiShieldCheck } from "react-icons/hi2";
1919
import { MdCheckCircle } from "react-icons/md";
2020

21-
export const revalidate = 3600;
21+
export const revalidate = 60;
2222

2323
const getExtensionDoc = async (id: string) => {
2424
const db = getDB();
@@ -38,7 +38,7 @@ async function getExtensionInformation(
3838
): Promise<APIExtension | null> {
3939
const response = await fetch(INDEX_URL, {
4040
next: {
41-
revalidate: 180,
41+
revalidate: 60,
4242
},
4343
});
4444
const index = await response.json();
@@ -58,7 +58,7 @@ async function getExtensionInformation(
5858
const readmeContents = extensionInfo.readmeFileURL
5959
? await fetch(extensionInfo.readmeFileURL, {
6060
next: {
61-
revalidate: 180,
61+
revalidate: 60,
6262
},
6363
}).then((res) => res.text())
6464
: undefined;

0 commit comments

Comments
 (0)