You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
website/app/sitemap.ts

11 lines
315 B
TypeScript

import { MetadataRoute } from "next";
export default function sitemap(): MetadataRoute.Sitemap {
return ["goudham.com", "goudham.com/projects"].map((url) => {
return {
url: process.env.NEXT_PUBLIC_IS_PREVIEW ? `https://preview.${url}` : `https://${url}`,
lastModified: new Date(),
};
});
}