Skip to content

Commit

Permalink
fix: exclude non pages from sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre committed Apr 30, 2024
1 parent a23b965 commit 9882cab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-games-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrolicious/i18n": patch
---

Fixes a case where non pages were included in the sitemap
2 changes: 1 addition & 1 deletion package/src/sitemap/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const integration = defineIntegration({
);
}
r.routeData = routeData;
r.include = true;
r.include = routeData.type === "page";
}

const _routes = [
Expand Down

0 comments on commit 9882cab

Please sign in to comment.