Hold /privacy behind a flag until counsel reads it, and fix leftover legal and email copy.
This commit is contained in:
1 parent
ead6c8f716
commit
072e5362f5
43 files changed
+548
-191
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import type { MetadataRoute } from "next";
|
||||
import { getAllBlogPosts } from "./content";
|
||||
import { isPrivacyPolicyEnabled } from "./privacyPolicyEnabled";
|
||||
import { sitemapUrl } from "./siteMetadata";
|
||||
import { USE_CASE_DETAIL_SLUGS } from "./useCaseSyntheticPost";
|
||||
|
||||
@@ -26,7 +27,9 @@ const STATIC_PUBLIC_PATHS = [
|
||||
export function buildPublicSitemap(
|
||||
listedRules: ReadonlyArray<{ id: string; updatedAt: Date }> = [],
|
||||
): MetadataRoute.Sitemap {
|
||||
const entries: MetadataRoute.Sitemap = STATIC_PUBLIC_PATHS.map((path) => ({
|
||||
const entries: MetadataRoute.Sitemap = STATIC_PUBLIC_PATHS.filter(
|
||||
(path) => path !== "/privacy" || isPrivacyPolicyEnabled(),
|
||||
).map((path) => ({
|
||||
url: sitemapUrl(path),
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user