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

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