🔍 Improve sitemap
This commit is contained in:
parent
21a02689dd
commit
48690b1b88
@ -8,10 +8,17 @@ export default defineNuxtConfig({
|
|||||||
name: "Solsynth LLC",
|
name: "Solsynth LLC",
|
||||||
},
|
},
|
||||||
sitemap: {
|
sitemap: {
|
||||||
|
strictNuxtContentPaths: true,
|
||||||
cacheMaxAgeSeconds: 3600,
|
cacheMaxAgeSeconds: 3600,
|
||||||
sitemapsPathPrefix: "/sitemap",
|
sitemapsPathPrefix: "/sitemap",
|
||||||
sitemaps: {
|
sitemaps: {
|
||||||
|
pages: {
|
||||||
|
includeAppSources: true,
|
||||||
|
exclude: ["/flow/**"],
|
||||||
|
defaults: { priority: 0.8 },
|
||||||
|
},
|
||||||
posts: {
|
posts: {
|
||||||
|
includeAppSources: false,
|
||||||
sources: [
|
sources: [
|
||||||
"/api/sitemap/posts",
|
"/api/sitemap/posts",
|
||||||
],
|
],
|
||||||
|
@ -7,7 +7,7 @@ export default defineSitemapEventHandler(async () => {
|
|||||||
return result.data.map((item: any) => asSitemapUrl({
|
return result.data.map((item: any) => asSitemapUrl({
|
||||||
loc: `/posts/${item.id}`,
|
loc: `/posts/${item.id}`,
|
||||||
lastmod: item.edited_at ?? item.published_at,
|
lastmod: item.edited_at ?? item.published_at,
|
||||||
priority: 0.9,
|
priority: 0.7,
|
||||||
_sitemap: "posts",
|
_sitemap: "posts",
|
||||||
}));
|
}));
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user