You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The name prefix string used when generating the sitemap XML files. The default value is `sitemap`.
429
+
430
+
This option may be useful when integrating an Astro site into a domain with preexisting sitemap files.
431
+
432
+
```js title="astro.config.mjs" ins={8}
433
+
import { defineConfig } from'astro/config';
434
+
importsitemapfrom'@astrojs/sitemap';
435
+
436
+
exportdefaultdefineConfig({
437
+
site:'https://stargazers.club',
438
+
integrations: [
439
+
sitemap({
440
+
filenameBase:'astronomy-sitemap'
441
+
}),
442
+
],
443
+
});
444
+
```
445
+
446
+
The given configuration will generate sitemap files at `https://stargazers.club/astronomy-sitemap-0.xml` and `https://stargazers.club/astronomy-sitemap-index.xml`.
447
+
426
448
## Examples
427
449
428
450
* The official Astro website uses Astro Sitemap to generate [its sitemap](https://astro.build/sitemap-index.xml).
0 commit comments