mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-24 16:26:32 +02:00
Some checks failed
Build and Push Docker Images / tag_release (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Has been cancelled
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Has been cancelled
- Added multiple new skills to skills-lock.json from the repository `aaron-he-zhu/seo-geo-claude-skills`. - Introduced `fuzzy-search` dependency in package.json for improved search functionality. - Updated pnpm-lock.yaml to include the new `fuzzy-search` package. - Enhanced SEO metadata across various pages, including canonical links and descriptions for better search visibility. - Improved layout and structure of several components, including the homepage and changelog, to enhance user experience.
59 lines
2.2 KiB
TypeScript
59 lines
2.2 KiB
TypeScript
import { loader } from "fumadocs-core/source";
|
|
import type { MetadataRoute } from "next";
|
|
import { blog, changelog } from "@/.source/server";
|
|
import { source as docsSource } from "@/lib/source";
|
|
|
|
const blogSource = loader({
|
|
baseUrl: "/blog",
|
|
source: blog.toFumadocsSource(),
|
|
});
|
|
|
|
const changelogSource = loader({
|
|
baseUrl: "/changelog",
|
|
source: changelog.toFumadocsSource(),
|
|
});
|
|
|
|
const BASE_URL = "https://surfsense.com";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const now = new Date();
|
|
now.setMinutes(0, 0, 0);
|
|
const lastModified = now;
|
|
|
|
const staticPages: MetadataRoute.Sitemap = [
|
|
{ url: `${BASE_URL}/`, lastModified, changeFrequency: "daily", priority: 1 },
|
|
{ url: `${BASE_URL}/pricing`, lastModified, changeFrequency: "weekly", priority: 0.9 },
|
|
{ url: `${BASE_URL}/contact`, lastModified, changeFrequency: "monthly", priority: 0.7 },
|
|
{ url: `${BASE_URL}/blog`, lastModified, changeFrequency: "daily", priority: 0.9 },
|
|
{ url: `${BASE_URL}/changelog`, lastModified, changeFrequency: "weekly", priority: 0.7 },
|
|
{ url: `${BASE_URL}/announcements`, lastModified, changeFrequency: "weekly", priority: 0.6 },
|
|
{ url: `${BASE_URL}/docs`, lastModified, changeFrequency: "daily", priority: 1 },
|
|
{ url: `${BASE_URL}/privacy`, lastModified, changeFrequency: "monthly", priority: 0.3 },
|
|
{ url: `${BASE_URL}/terms`, lastModified, changeFrequency: "monthly", priority: 0.3 },
|
|
{ url: `${BASE_URL}/login`, lastModified, changeFrequency: "monthly", priority: 0.5 },
|
|
{ url: `${BASE_URL}/register`, lastModified, changeFrequency: "monthly", priority: 0.5 },
|
|
];
|
|
|
|
const docsPages: MetadataRoute.Sitemap = docsSource.getPages().map((page) => ({
|
|
url: `${BASE_URL}${page.url}`,
|
|
lastModified,
|
|
changeFrequency: "weekly" as const,
|
|
priority: 0.8,
|
|
}));
|
|
|
|
const blogPages: MetadataRoute.Sitemap = blogSource.getPages().map((page) => ({
|
|
url: `${BASE_URL}${page.url}`,
|
|
lastModified,
|
|
changeFrequency: "weekly" as const,
|
|
priority: 0.8,
|
|
}));
|
|
|
|
const changelogPages: MetadataRoute.Sitemap = changelogSource.getPages().map((page) => ({
|
|
url: `${BASE_URL}${page.url}`,
|
|
lastModified,
|
|
changeFrequency: "monthly" as const,
|
|
priority: 0.5,
|
|
}));
|
|
|
|
return [...staticPages, ...docsPages, ...blogPages, ...changelogPages];
|
|
}
|