Commit 7054b616a3
Unsigned
Layout: unified · split
web/astro.config.mjs +1 −11
| @@ -5,19 +5,9 @@ import sitemap from '@astrojs/sitemap'; | |||
| 5 | import vercel from "@astrojs/vercel/serverless"; | 5 | import vercel from "@astrojs/vercel/serverless"; |
| 6 | // import netlify from "@astrojs/netlify"; | 6 | // import netlify from "@astrojs/netlify"; |
| 7 | 7 | ||
| 8 | const siteMapConfig = { | ||
| 9 | entryLimit: 10000, | ||
| 10 | changefreq: 'weekly', | ||
| 11 | priority: 0.7, | ||
| 12 | lastmod: new Date(), | ||
| 13 | filter: (page) => { // Exclude search result pages | ||
| 14 | return !page.url.startsWith('/search/') && page.url.split('/').length > 2; | ||
| 15 | }, | ||
| 16 | }; | ||
| 17 | |||
| 18 | export default defineConfig({ | 8 | export default defineConfig({ |
| 19 | output: 'hybrid', | 9 | output: 'hybrid', |
| 20 | integrations: [svelte(), partytown(), sitemap(siteMapConfig)], | 10 | integrations: [svelte(), partytown(), sitemap()], |
| 21 | site: import.meta.env.SITE_URL || 'https://awesome-privacy.xyz', | 11 | site: import.meta.env.SITE_URL || 'https://awesome-privacy.xyz', |
| 22 | adapter: vercel(), | 12 | adapter: vercel(), |
| 23 | // adapter: netlify(), | 13 | // adapter: netlify(), |