Skip to content

Commit

Permalink
Update route.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ authored Mar 22, 2024
1 parent 4f73fed commit 3451964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/sitemap2/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function GET(req) {
// Add each article URL to the sitemap
articles.forEach((article) => {
xml += "<url>";
xml += `<loc>https://dev-art.vercel.app${article.path}</loc>`; // Modify URL structure as needed
xml += `<loc>https://dev.sh20raj.com${article.path}</loc>`; // Modify URL structure as needed
xml += `<lastmod>${new Date(article.published_at).toISOString()}</lastmod>`; // Use published date as last modified
xml += "<changefreq>weekly</changefreq>"; // You can adjust the change frequency
xml += "<priority>0.8</priority>"; // Priority can be adjusted based on the importance of the page
Expand Down

0 comments on commit 3451964

Please sign in to comment.