diff --git a/src/data/site-layout.ts b/src/data/site-layout.ts index 44ad9de..e755e87 100644 --- a/src/data/site-layout.ts +++ b/src/data/site-layout.ts @@ -269,7 +269,10 @@ export const getPaths = ( ]; } else { let enabled = currentEntry.enabled ?? true; - if (disabledOnly ? !enabled : enabled) { + if ( + (disabledOnly ? !enabled : enabled) && + !currentEntry.placeholderEntry + ) { foundPaths.push("/" + [...paths, currentEntry.path || ""].join("/")); } } diff --git a/test/endpoints.spec.ts b/test/endpoints.spec.ts index 5e4fd72..11f85f5 100644 --- a/test/endpoints.spec.ts +++ b/test/endpoints.spec.ts @@ -40,5 +40,8 @@ test("Pages Missing from Astro Paths", () => { siteLayoutPaths, astroStaticPaths, ); - expect(siteLayoutNotAstroPaths).toHaveLength(0); + expect( + siteLayoutNotAstroPaths, + `FOUND: ${[...siteLayoutNotAstroPaths]}`, + ).toHaveLength(0); });