Complete the code to import the sitemap integration from Astro.
import { [1] } from '@astrojs/sitemap';
The correct import is sitemap from '@astrojs/sitemap'. It matches the package export.
Complete the code to add the sitemap integration to the Astro config integrations array.
export default {
integrations: [[1]()],
};You add sitemap() to the integrations array to enable sitemap generation.
Fix the error in the sitemap config by completing the property name correctly.
sitemap({
hostname: '[1]',
});The correct property name is hostname all lowercase, no camelCase.
Fill both blanks to create a sitemap config with hostname and exclude options.
sitemap({
[1]: 'https://example.com',
[2]: ['/secret', '/admin'],
});The hostname sets the site URL, and exclude lists paths to skip in the sitemap.
Fill all three blanks to export the Astro config with sitemap integration and custom hostname.
import { sitemap } from '@astrojs/sitemap'; export default { integrations: [[1]()], [2]: { [3]: 'https://mysite.dev' } };
You import and add sitemap() to integrations, then set sitemap config with hostname.
