From 5cbc906d6507d56833bfafd47ee012c5d9d05031 Mon Sep 17 00:00:00 2001 From: itsfinniii <102350242+itsfinniii@users.noreply.github.com> Date: Sat, 28 Mar 2026 15:58:23 +0100 Subject: [PATCH] Dont create page if exists is false --- astro/src/pages/[...route].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"