diff --git a/astro/src/pages/[...route].astro b/astro/src/pages/[...route].astro index 9cec203..07b13fd 100644 --- a/astro/src/pages/[...route].astro +++ b/astro/src/pages/[...route].astro @@ -25,7 +25,7 @@ export async function getStaticPaths() { const settings = await getSettings(); const page = await getPage(settings, Astro.url.pathname); -if (page === null || page.page === null) { +if (page === null || page.page === null || !page.page.exists) { return new Response("Page not found.", { status: 404, statusText: "Not Found"