diff --git a/packages/frontend/src/routes/sitemap.xml/+server.ts b/packages/frontend/src/routes/sitemap.xml/+server.ts deleted file mode 100644 index 3a050d0..0000000 --- a/packages/frontend/src/routes/sitemap.xml/+server.ts +++ /dev/null @@ -1,19 +0,0 @@ -import * as sitemap from "super-sitemap"; -import { getArticles, getModels, getVideos } from "$lib/services"; - -export const GET = async () => { - return await sitemap.response({ - origin: "https://sexy.pivoine.art", - excludeRoutePatterns: ["^/signup/verify", "^/password/reset", "^/me", "^/play", "^/tags/.+"], - paramValues: { - "/magazine/[slug]": (await getArticles(fetch)).map((a) => a.slug), - "/models/[slug]": (await getModels(fetch)) - .map((a) => a.slug) - .filter((s): s is string => s !== null), - "/videos/[slug]": (await getVideos(fetch)).map((a) => a.slug), - }, - defaultChangefreq: "always", - defaultPriority: 0.7, - sort: "alpha", // default is false; 'alpha' sorts all paths alphabetically. - }); -}; diff --git a/packages/frontend/static/robots.txt b/packages/frontend/static/robots.txt index 9552f91..14267e9 100644 --- a/packages/frontend/static/robots.txt +++ b/packages/frontend/static/robots.txt @@ -1,4 +1,2 @@ User-agent: * -Allow: / - -Sitemap: https://sexy.pivoine.art/sitemap.xml \ No newline at end of file +Allow: / \ No newline at end of file