From dadc9be57e674655e4d3fc78eb06b65cd96b93a0 Mon Sep 17 00:00:00 2001 From: Cypro Freelance <110410268+Proxyy587@users.noreply.github.com> Date: Sun, 28 Jul 2024 20:50:53 +0530 Subject: [PATCH] openg pt2 --- app/(root)/layout.tsx | 6 ++++-- app/sitemap.ts | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 app/sitemap.ts diff --git a/app/(root)/layout.tsx b/app/(root)/layout.tsx index 08369cb..c8a4234 100644 --- a/app/(root)/layout.tsx +++ b/app/(root)/layout.tsx @@ -2,6 +2,7 @@ import Footer from "@/components/shared/Footer"; import Navbar from "@/components/shared/Navbar"; import { Metadata } from "next"; +// baseURL [ENV] export const metadata: Metadata = { title: "SVRJS - A Web Server running on Node.js", description: @@ -14,7 +15,7 @@ export const metadata: Metadata = { type: "website", images: [ { - url: "https://svrjs.org/metadata/svrjs-cover.png", + url: "https://svrjs.vercel.app/metadata/svrjs-cover.png", width: 800, height: 600, alt: "SVRJS - A Web Server running on Node.js", @@ -27,7 +28,8 @@ export const metadata: Metadata = { title: "SVRJS - A Web Server running on Node.js", description: "Experience unparalleled flexibility with SVR.JS - the ultimate web server for Node.js. Host web pages, run server-side JavaScript, utilize mods for extended functionality, and more. Integrated log viewer and user management tools included. Also supports Bun (experimental).", - images: "/metadata/svrjs-cover.png", + images: ["https://svrjs.vercel.app/metadata/svrjs-cover.png"], + creator: "@SVR_JS", }, }; export default function PageLayout({ diff --git a/app/sitemap.ts b/app/sitemap.ts new file mode 100644 index 0000000..a8478ed --- /dev/null +++ b/app/sitemap.ts @@ -0,0 +1,20 @@ +export default async function sitemap() { + let routes = [ + "", + "/blog", + "/changelogs", + "/contact", + "/contribute", + "/downloads", + "/forum", + "/mods", + "/privacy-policy", + "/tos", + "/vulnerabilities", + ].map((route) => ({ + url: `https://vimfn.in${route}`, + lastModified: new Date().toISOString().split("T")[0], + })); + + return [...routes]; +}