Skip to content

Commit e5bd4d3

Browse files
committed
[Docs Site] Exclude 404 pages from sitemap
1 parent ec7a1f9 commit e5bd4d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

astro.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,9 @@ export default defineConfig({
167167
icon(),
168168
sitemap({
169169
filter(page) {
170-
return !page.startsWith(
171-
"https://developers.cloudflare.com/style-guide/",
170+
return (
171+
!page.startsWith("https://developers.cloudflare.com/style-guide/") ||
172+
!page.endsWith("/404/")
172173
);
173174
},
174175
serialize(item) {

0 commit comments

Comments
 (0)