mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
refactor(website): switch to dynamic only
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user