refactor(website): switch to dynamic only

This commit is contained in:
iCrawl
2025-05-30 02:29:15 +02:00
parent 2c35084ecd
commit 762bbc6525
37 changed files with 4315 additions and 3630 deletions

View File

@@ -26,10 +26,9 @@ export async function fetchEntryPoints(packageName: string, version: string) {
}
}
const isMain = version === 'main';
const fileContent = await fetch(
`${process.env.CF_R2_DOCS_BUCKET_URL}/${packageName}/${version}.entrypoints.api.json`,
{ next: { revalidate: isMain ? 0 : 604_800 } },
{ cache: 'no-store' },
);
if (!fileContent.ok) {