mirror of https://github.com/sgoudham/website.git
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.
11 lines
315 B
TypeScript
11 lines
315 B
TypeScript
1 year ago
|
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(),
|
||
|
};
|
||
|
});
|
||
|
}
|