This commit is contained in:
Tben 2022-08-06 20:13:04 +01:00
parent d74a59ddde
commit c1ed109a30

View File

@ -146,14 +146,14 @@ export async function getStaticProps({ params }) {
.end();
});
if (!postsResponse.success || !postsResponse.payload[0]) {
return {
redirect: {
destination: "/blog",
permanent: false
}
}
}
// if (!postsResponse.success || !postsResponse.payload[0]) {
// return {
// redirect: {
// destination: "/blog",
// permanent: false
// }
// }
// }
const post = postsResponse.payload[0];
@ -232,14 +232,14 @@ export async function getStaticPaths() {
.end();
});
if (!postsResponse.success) {
return {
redirect: {
destination: "/blog",
permanent: false
}
}
}
// if (!postsResponse.success) {
// return {
// redirect: {
// destination: "/blog",
// permanent: false
// }
// }
// }
const posts = postsResponse.payload;