mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
refactor: switch to ssr for unbuilt pages
This commit is contained in:
@@ -121,7 +121,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
|
||||
|
||||
return {
|
||||
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,
|
||||
source: mdxSource,
|
||||
},
|
||||
revalidate: 3600,
|
||||
},
|
||||
};
|
||||
} catch {
|
||||
|
||||
@@ -17,7 +17,7 @@ export const getStaticPaths: GetStaticPaths = () => {
|
||||
|
||||
return {
|
||||
paths: versions,
|
||||
fallback: true,
|
||||
fallback: 'blocking',
|
||||
};
|
||||
};
|
||||
|
||||
@@ -41,6 +41,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
data: {
|
||||
versions: data,
|
||||
},
|
||||
revalidate: 3600,
|
||||
},
|
||||
};
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user