mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: properly 404 and revalidate
This commit is contained in:
@@ -169,14 +169,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
memberName && containerKey ? findMemberByKey(model, packageName, containerKey, branchName) ?? null : null,
|
||||
source: mdxSource,
|
||||
},
|
||||
revalidate: 3600,
|
||||
},
|
||||
revalidate: 3600,
|
||||
};
|
||||
} catch {
|
||||
return {
|
||||
props: {
|
||||
notFound: true,
|
||||
},
|
||||
notFound: true,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -53,14 +53,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
data: {
|
||||
versions: data,
|
||||
},
|
||||
revalidate: 3600,
|
||||
},
|
||||
revalidate: 3600,
|
||||
};
|
||||
} catch {
|
||||
return {
|
||||
props: {
|
||||
notFound: true,
|
||||
},
|
||||
notFound: true,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user