Skip to content

Commit

Permalink
fdafds
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajrekwar committed Aug 8, 2024
1 parent 7cb29ad commit 39a1944
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/sitemap.xml.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// app/sitemap.xml.ts
import { NextResponse } from 'next/server';

export async function GET() {
// Generate your sitemap data here (example: using fs or a database)
const sitemap = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://neerajrekwar.gihub.io/</loc>
<lastmod>2024-08-08</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/* Add more URLs here */}
</urlset>`;

return new NextResponse(sitemap, {
headers: {
'Content-Type': 'text/xml',
},
});
}

0 comments on commit 39a1944

Please sign in to comment.