feat: add images to sitemap
This commit is contained in:
parent
2a1cb89ecc
commit
748399460a
2 changed files with 4 additions and 1 deletions
|
|
@ -96,6 +96,7 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
|||
headers: {
|
||||
"Content-Type": "image/png",
|
||||
"Content-Disposition": `inline; filename="${filename}"`,
|
||||
"Cache-Control": "public, max-age=31536000",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
@ -103,7 +104,8 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
|||
return new NextResponse(buffer, {
|
||||
headers: {
|
||||
"Content-Type": "image/webp",
|
||||
"X-Robots-Tag": "noindex, nofollow",
|
||||
"X-Robots-Tag": "noindex, noimageindex, nofollow",
|
||||
"Cache-Control": "no-store",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
|||
lastModified: mii.createdAt,
|
||||
changeFrequency: "weekly",
|
||||
priority: 0.7,
|
||||
images: [`${baseUrl}/mii/${mii.id}/image?type=metadata`],
|
||||
} as SitemapRoute)
|
||||
),
|
||||
...users.map(
|
||||
|
|
|
|||
Loading…
Reference in a new issue