feat: ajustar prioridad de rutas de videos y eliminar imágenes de miniaturas en el sitemap
This commit is contained in:
@@ -46,18 +46,13 @@ export async function GET() {
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Dynamic video routes (one per tutorial)
|
// Dynamic video routes (one per tutorial)
|
||||||
|
// Note: video thumbnails are hosted on YouTube's CDN (i*.ytimg.com); Google's image
|
||||||
|
// sitemap extension targets images on your own domain, so they are omitted here.
|
||||||
const allVideos = getAllVideos();
|
const allVideos = getAllVideos();
|
||||||
const videoRoutes: SitemapRoute[] = allVideos.map((video) => ({
|
const videoRoutes: SitemapRoute[] = allVideos.map((video) => ({
|
||||||
url: `${baseUrl}/landing/help/video/${video.id}`,
|
url: `${baseUrl}/landing/help/video/${video.id}`,
|
||||||
changeFrequency: "monthly",
|
changeFrequency: "monthly",
|
||||||
priority: 0.6,
|
priority: 0.8,
|
||||||
images: [
|
|
||||||
{
|
|
||||||
url: video.thumbnail,
|
|
||||||
title: video.title,
|
|
||||||
caption: video.description,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Login and signup routes (lower priority)
|
// Login and signup routes (lower priority)
|
||||||
|
|||||||
Reference in New Issue
Block a user