From 8f9ebfaa5d2a30543779126344de38f88a0279e4 Mon Sep 17 00:00:00 2001 From: Vedant005 Date: Sat, 15 Nov 2025 23:44:48 +0530 Subject: [PATCH 1/3] feat: sitemap feature --- src/app/sitemap.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/app/sitemap.ts diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts new file mode 100644 index 00000000..801d7ad3 --- /dev/null +++ b/src/app/sitemap.ts @@ -0,0 +1,27 @@ +import type { MetadataRoute } from "next"; +import { + mainSource, + selfHostingSource, + platformSource, + guideSource, + openApiSource, + developingSource, +} from "../lib/source"; + +export default function sitemap(): MetadataRoute.Sitemap { + const sources = [ + mainSource, + selfHostingSource, + platformSource, + guideSource, + openApiSource, + developingSource, + ]; + + return sources.flatMap((s) => + s.getPages().map((page) => ({ + url: `https://docs.logchimp.codecarrot.net${page.url}`, + lastModified: new Date().toISOString(), + })), + ); +} From ab28e6341bf7ffea0fe6c1a0d89ba0d934f600ff Mon Sep 17 00:00:00 2001 From: Vedant005 Date: Sat, 15 Nov 2025 23:51:32 +0530 Subject: [PATCH 2/3] Revert "refactor: url change" This reverts commit 132572f08ce9d0d32ab9113eab711c40bda7300e. --- content/api-reference/auth/sendVerificationEmail.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/api-reference/auth/sendVerificationEmail.mdx b/content/api-reference/auth/sendVerificationEmail.mdx index dd9fe949..018dfcb1 100644 --- a/content/api-reference/auth/sendVerificationEmail.mdx +++ b/content/api-reference/auth/sendVerificationEmail.mdx @@ -12,14 +12,14 @@ _openapi: Send a verification email to the user email address. The email is only sent if have configured [SMTP mail - server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail) + server](https://docs.logchimp.codecarrot.net/docs/environment-variables#mail) are configured at the time of deploying LogChimp. --- {/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */} Send a verification email to the user email address. -The email is only sent if have configured [SMTP mail server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail) are configured at the time of deploying LogChimp. +The email is only sent if have configured [SMTP mail server](https://docs.logchimp.codecarrot.net/docs/environment-variables#mail) are configured at the time of deploying LogChimp. \ No newline at end of file From 4f35e85c222fc3fac78fff61cf25e68220e7545a Mon Sep 17 00:00:00 2001 From: Yashu Mittal Date: Sun, 18 Jan 2026 14:39:24 +0530 Subject: [PATCH 3/3] fix: reuse buildTime for sitemap lastModified timestamps --- src/app/sitemap.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 801d7ad3..156f55df 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -8,6 +8,8 @@ import { developingSource, } from "../lib/source"; +const buildTime = new Date().toISOString(); + export default function sitemap(): MetadataRoute.Sitemap { const sources = [ mainSource, @@ -21,7 +23,7 @@ export default function sitemap(): MetadataRoute.Sitemap { return sources.flatMap((s) => s.getPages().map((page) => ({ url: `https://docs.logchimp.codecarrot.net${page.url}`, - lastModified: new Date().toISOString(), + lastModified: buildTime, })), ); }