Repository navigation
Replies: 1 comment
|
tanstackStart({
prerender: {
enabled: true,
crawlLinks: false,
onSuccess: ({ page }) => {
const pathname = new URL(page.path, 'https://example.com').pathname
if (pathname === '/app' || pathname.startsWith('/app/')) {
return { sitemap: { ...page.sitemap, exclude: true } }
}
},
},
sitemap: {
enabled: true,
host: 'https://example.com',
},
})The boundary check keeps I verified this with the actual prerender/sitemap functions at commit Two limitations matter here:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I want to exclude everything under
/appfrom the sitemap, is there any way to use a function or regex on thepathproperty ofpages?All reactions