From c1ed109a30e7e96d1ef6704309d7bb4872af9177 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Sat, 6 Aug 2022 20:13:04 +0100 Subject: [PATCH] updates --- pages/blog/[single].jsx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/blog/[single].jsx b/pages/blog/[single].jsx index 98f7ba7..20fbdef 100644 --- a/pages/blog/[single].jsx +++ b/pages/blog/[single].jsx @@ -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;