mirror of
https://github.com/Lissy93/awesome-privacy.git
synced 2026-03-11 08:55:33 +00:00
Update sitemap build config
This commit is contained in:
parent
18c8082aee
commit
7054b616a3
1 changed files with 1 additions and 11 deletions
|
|
@ -5,19 +5,9 @@ import sitemap from '@astrojs/sitemap';
|
|||
import vercel from "@astrojs/vercel/serverless";
|
||||
// import netlify from "@astrojs/netlify";
|
||||
|
||||
const siteMapConfig = {
|
||||
entryLimit: 10000,
|
||||
changefreq: 'weekly',
|
||||
priority: 0.7,
|
||||
lastmod: new Date(),
|
||||
filter: (page) => { // Exclude search result pages
|
||||
return !page.url.startsWith('/search/') && page.url.split('/').length > 2;
|
||||
},
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
output: 'hybrid',
|
||||
integrations: [svelte(), partytown(), sitemap(siteMapConfig)],
|
||||
integrations: [svelte(), partytown(), sitemap()],
|
||||
site: import.meta.env.SITE_URL || 'https://awesome-privacy.xyz',
|
||||
adapter: vercel(),
|
||||
// adapter: netlify(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue