mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
chore: some logging
This commit is contained in:
@@ -172,7 +172,10 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
},
|
},
|
||||||
revalidate: 3600,
|
revalidate: 3600,
|
||||||
};
|
};
|
||||||
} catch {
|
} catch (e) {
|
||||||
|
const error = e as Error;
|
||||||
|
console.log(error);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notFound: true,
|
notFound: true,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
const data: string[] = await res.json();
|
const data: string[] = await res.json();
|
||||||
|
|
||||||
if (!data.length) {
|
if (!data.length) {
|
||||||
|
console.log('No tags');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notFound: true,
|
notFound: true,
|
||||||
};
|
};
|
||||||
@@ -56,7 +58,10 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
|
|||||||
},
|
},
|
||||||
revalidate: 3600,
|
revalidate: 3600,
|
||||||
};
|
};
|
||||||
} catch {
|
} catch (e) {
|
||||||
|
const error = e as Error;
|
||||||
|
console.log(error);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
notFound: true,
|
notFound: true,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user