From 33bd93f56c7235bb574e02ea3f10167aa5538674 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sat, 3 May 2025 18:04:34 +0200 Subject: [PATCH] sitemap --- src/app/sitemap.ts | 13 +++++++++++++ src/lib/constants.ts | 1 + 2 files changed, 14 insertions(+) create mode 100644 src/app/sitemap.ts create mode 100644 src/lib/constants.ts diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts new file mode 100644 index 0000000..6434bce --- /dev/null +++ b/src/app/sitemap.ts @@ -0,0 +1,13 @@ +import { BASE_URL } from "@/lib/constants"; +import { type MetadataRoute } from "next"; + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: BASE_URL, + lastModified: new Date(), + changeFrequency: "yearly", + priority: 1, + }, + ]; +} diff --git a/src/lib/constants.ts b/src/lib/constants.ts new file mode 100644 index 0000000..1e11df1 --- /dev/null +++ b/src/lib/constants.ts @@ -0,0 +1 @@ +export const BASE_URL = "https://investingfire.com/";