mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
refactor: switch to ssr for unbuilt pages
This commit is contained in:
@@ -121,7 +121,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
paths: pkgs,
|
paths: pkgs,
|
||||||
fallback: true,
|
fallback: 'blocking',
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -174,6 +174,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
memberName && containerKey ? findMemberByKey(model, packageName, containerKey, branchName) ?? null : null,
|
memberName && containerKey ? findMemberByKey(model, packageName, containerKey, branchName) ?? null : null,
|
||||||
source: mdxSource,
|
source: mdxSource,
|
||||||
},
|
},
|
||||||
|
revalidate: 3600,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const getStaticPaths: GetStaticPaths = () => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
paths: versions,
|
paths: versions,
|
||||||
fallback: true,
|
fallback: 'blocking',
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -41,6 +41,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
data: {
|
data: {
|
||||||
versions: data,
|
versions: data,
|
||||||
},
|
},
|
||||||
|
revalidate: 3600,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user