diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index a49565a..550292e 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -21,6 +21,11 @@ interface Props { } const { entry } = Astro.props as Props; + +if (!entry) { + return Astro.redirect('/404'); +} + const { Content } = await entry.render(); const components = { table: Table }; const {