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]; +}