mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +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,
|
memberName && containerKey ? findMemberByKey(model, packageName, containerKey, branchName) ?? null : null,
|
||||||
source: mdxSource,
|
source: mdxSource,
|
||||||
},
|
},
|
||||||
revalidate: 3600,
|
|
||||||
},
|
},
|
||||||
|
revalidate: 3600,
|
||||||
};
|
};
|
||||||
} catch {
|
} catch {
|
||||||
return {
|
return {
|
||||||
props: {
|
notFound: true,
|
||||||
notFound: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,14 +53,12 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
data: {
|
data: {
|
||||||
versions: data,
|
versions: data,
|
||||||
},
|
},
|
||||||
revalidate: 3600,
|
|
||||||
},
|
},
|
||||||
|
revalidate: 3600,
|
||||||
};
|
};
|
||||||
} catch {
|
} catch {
|
||||||
return {
|
return {
|
||||||
props: {
|
notFound: true,
|
||||||
notFound: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user