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