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: {
|
headers: {
|
||||||
"Content-Type": "image/png",
|
"Content-Type": "image/png",
|
||||||
"Content-Disposition": `inline; filename="${filename}"`,
|
"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, {
|
return new NextResponse(buffer, {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "image/webp",
|
"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,
|
lastModified: mii.createdAt,
|
||||||
changeFrequency: "weekly",
|
changeFrequency: "weekly",
|
||||||
priority: 0.7,
|
priority: 0.7,
|
||||||
|
images: [`${baseUrl}/mii/${mii.id}/image?type=metadata`],
|
||||||
} as SitemapRoute)
|
} as SitemapRoute)
|
||||||
),
|
),
|
||||||
...users.map(
|
...users.map(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue