Skip to content

Commit

Permalink
update the sitemap url
Browse files Browse the repository at this point in the history
  • Loading branch information
officialrajdeepsingh committed Aug 30, 2023
1 parent 2aa9d31 commit 3440a47
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { MetadataRoute } from "next";
import {SITE_URL} from "@/url"

import { SITE_URL } from "@/url"

let Items = Array.from({ length: 10 }, (_v,i) => ({ url: `${SITE_URL}/read/${i+1}`, lastModified: new Date() }));

export default function sitemap(): MetadataRoute.Sitemap {

let Items = Array.from({ length: 10 }, (_v,i) => ({ url: `${SITE_URL}/read/${i+1}`, lastModified: new Date() }));


return [
{
url: SITE_URL,
Expand All @@ -20,7 +18,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
url: `${SITE_URL}/contact`,
lastModified: new Date(),
},
...Items
];
...Items,
];

}

0 comments on commit 3440a47

Please sign in to comment.