Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

exclude project/* pages from sitemap.xml

Blue Mouse7948a108a253
diff --git a/app/entry.server.tsx b/app/entry.server.tsx
index c909207c2..e7b462133 100644
--- a/app/entry.server.tsx
+++ b/app/entry.server.tsx
@@ -16,7 +16,6 @@ import i18n, { detectLanguage } from './i18n'
const ABORT_DELAY = 5_000
-// TODO: Exclude /project/* endpoints from sitemap
const { isSitemapUrl, sitemap } = createSitemapGenerator({
siteUrl: MAIN_URL,
autoLastmod: false,
diff --git a/app/routes/project.transfer.cancel.tsx b/app/routes/project.transfer.cancel.tsx
index 2c6755eea..6a1be4c4c 100644
--- a/app/routes/project.transfer.cancel.tsx
+++ b/app/routes/project.transfer.cancel.tsx
@@ -1,5 +1,10 @@
import TransferProjectConfirm from 'pages/Project/Settings/TransferProject/TransferProjectConfirm'
import type { V2_MetaFunction } from '@remix-run/node'
+import type { SitemapFunction } from 'remix-sitemap'
+
+export const sitemap: SitemapFunction = () => ({
+ exclude: true,
+})
export const meta: V2_MetaFunction = () => {
return [
diff --git a/app/routes/project.transfer.confirm.tsx b/app/routes/project.transfer.confirm.tsx
index 2c6755eea..6a1be4c4c 100644
--- a/app/routes/project.transfer.confirm.tsx
+++ b/app/routes/project.transfer.confirm.tsx
@@ -1,5 +1,10 @@
import TransferProjectConfirm from 'pages/Project/Settings/TransferProject/TransferProjectConfirm'
import type { V2_MetaFunction } from '@remix-run/node'
+import type { SitemapFunction } from 'remix-sitemap'
+
+export const sitemap: SitemapFunction = () => ({
+ exclude: true,
+})
export const meta: V2_MetaFunction = () => {
return [
diff --git a/app/routes/projects.new.tsx b/app/routes/projects.new.tsx
index debc0eb0c..5a763ce22 100644
--- a/app/routes/projects.new.tsx
+++ b/app/routes/projects.new.tsx
@@ -1,5 +1,10 @@
import ProjectSettings from 'pages/Project/Settings'
import type { V2_MetaFunction } from '@remix-run/node'
+import type { SitemapFunction } from 'remix-sitemap'
+
+export const sitemap: SitemapFunction = () => ({
+ exclude: true,
+})
export const meta: V2_MetaFunction = () => {
return [