mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
fix: return 404 if a fetch error or no data is returned
This commit is contained in:
@@ -179,7 +179,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
||||
} catch {
|
||||
return {
|
||||
props: {
|
||||
error: 'FetchError',
|
||||
notFound: true,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user