Socket
Socket
Sign inDemoInstall

@astrojs/sitemap

Package Overview
Dependencies
8
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-redirects-20230511203938 to 0.0.0-toolbar-improvements-20240420123233

dist/utils/parse-i18n-url.d.ts

5

dist/config-defaults.d.ts

@@ -1,2 +0,3 @@

import type { SitemapOptions } from './index.js';
export declare const SITEMAP_CONFIG_DEFAULTS: SitemapOptions & any;
export declare const SITEMAP_CONFIG_DEFAULTS: {
entryLimit: number;
};

2

dist/generate-sitemap.d.ts
import type { SitemapItem, SitemapOptions } from './index.js';
/** Construct sitemap.xml given a set of URLs */
export declare function generateSitemap(pages: string[], finalSiteUrl: string, opts: SitemapOptions): SitemapItem[];
export declare function generateSitemap(pages: string[], finalSiteUrl: string, opts?: SitemapOptions): SitemapItem[];

@@ -1,41 +0,49 @@

import { parseUrl } from "./utils/parse-url.js";
const STATUS_CODE_PAGE_REGEXP = /\/[0-9]{3}\/?$/;
import { parseI18nUrl } from "./utils/parse-i18n-url.js";
function generateSitemap(pages, finalSiteUrl, opts) {
const { changefreq, priority, lastmod: lastmodSrc, i18n } = opts;
const urls = [...pages].filter((url) => !STATUS_CODE_PAGE_REGEXP.test(url));
const { changefreq, priority, lastmod: lastmodSrc, i18n } = opts ?? {};
const urls = [...pages];
urls.sort((a, b) => a.localeCompare(b, "en", { numeric: true }));
const lastmod = lastmodSrc == null ? void 0 : lastmodSrc.toISOString();
const { locales, defaultLocale } = i18n || {};
const localeCodes = Object.keys(locales || {});
const getPath = (url) => {
const result = parseUrl(url, (i18n == null ? void 0 : i18n.defaultLocale) || "", localeCodes, finalSiteUrl);
return result == null ? void 0 : result.path;
};
const getLocale = (url) => {
const result = parseUrl(url, (i18n == null ? void 0 : i18n.defaultLocale) || "", localeCodes, finalSiteUrl);
return result == null ? void 0 : result.locale;
};
const urlData = urls.map((url) => {
let links;
if (defaultLocale && locales) {
const currentPath = getPath(url);
if (currentPath) {
const filtered = urls.filter((subUrl) => getPath(subUrl) === currentPath);
if (filtered.length > 1) {
links = filtered.map((subUrl) => ({
url: subUrl,
lang: locales[getLocale(subUrl)]
}));
}
const lastmod = lastmodSrc?.toISOString();
const { defaultLocale, locales } = i18n ?? {};
let getI18nLinks;
if (defaultLocale && locales) {
getI18nLinks = createGetI18nLinks(urls, defaultLocale, locales, finalSiteUrl);
}
const urlData = urls.map((url, i) => ({
url,
links: getI18nLinks?.(i),
lastmod,
priority,
changefreq
}));
return urlData;
}
function createGetI18nLinks(urls, defaultLocale, locales, finalSiteUrl) {
const parsedI18nUrls = urls.map((url) => parseI18nUrl(url, defaultLocale, locales, finalSiteUrl));
const i18nPathToLinksCache = /* @__PURE__ */ new Map();
return (urlIndex) => {
const i18nUrl = parsedI18nUrls[urlIndex];
if (!i18nUrl) {
return void 0;
}
const cached = i18nPathToLinksCache.get(i18nUrl.path);
if (cached) {
return cached;
}
const links = [];
for (let i = 0; i < parsedI18nUrls.length; i++) {
const parsed = parsedI18nUrls[i];
if (parsed?.path === i18nUrl.path) {
links.push({
url: urls[i],
lang: locales[parsed.locale]
});
}
}
return {
url,
links,
lastmod,
priority,
changefreq
};
});
return urlData;
if (links.length <= 1) {
return void 0;
}
i18nPathToLinksCache.set(i18nUrl.path, links);
return links;
};
}

@@ -42,0 +50,0 @@ export {

import type { AstroIntegration } from 'astro';
import { EnumChangefreq, type LinkItem as LinkItemBase, type SitemapItemLoose } from 'sitemap';
import type { EnumChangefreq, LinkItem as LinkItemBase, SitemapItemLoose } from 'sitemap';
export { EnumChangefreq as ChangeFreqEnum } from 'sitemap';
export type ChangeFreq = `${EnumChangefreq}`;

@@ -4,0 +5,0 @@ export type SitemapItem = Pick<SitemapItemLoose, 'url' | 'lastmod' | 'changefreq' | 'priority' | 'links'>;

@@ -1,9 +0,8 @@

import {
simpleSitemapAndIndex
} from "sitemap";
import { fileURLToPath } from "url";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { ZodError } from "zod";
import { generateSitemap } from "./generate-sitemap.js";
import { Logger } from "./utils/logger.js";
import { validateOptions } from "./validate-options.js";
import { writeSitemap } from "./write-sitemap.js";
import { EnumChangefreq } from "sitemap";
function formatConfigErrorMessage(err) {

@@ -15,5 +14,12 @@ const errorList = err.issues.map((issue) => ` ${issue.path.join(".")} ${issue.message + "."}`);

const OUTFILE = "sitemap-index.xml";
const STATUS_CODE_PAGES = /* @__PURE__ */ new Set(["404", "500"]);
function isStatusCodePage(pathname) {
if (pathname.endsWith("/")) {
pathname = pathname.slice(0, -1);
}
const end = pathname.split("/").pop() ?? "";
return STATUS_CODE_PAGES.has(end);
}
const createPlugin = (options) => {
let config;
const logger = new Logger(PKG_NAME);
return {

@@ -25,3 +31,3 @@ name: PKG_NAME,

},
"astro:build:done": async ({ dir, routes, pages }) => {
"astro:build:done": async ({ dir, routes, pages, logger }) => {
try {

@@ -45,12 +51,22 @@ if (!config.site) {

}
let pageUrls = pages.map((p) => {
let pageUrls = pages.filter((p) => !isStatusCodePage(p.pathname)).map((p) => {
if (p.pathname !== "" && !finalSiteUrl.pathname.endsWith("/"))
finalSiteUrl.pathname += "/";
const path = finalSiteUrl.pathname + p.pathname;
return new URL(path, finalSiteUrl).href;
if (p.pathname.startsWith("/"))
p.pathname = p.pathname.slice(1);
const fullPath = finalSiteUrl.pathname + p.pathname;
return new URL(fullPath, finalSiteUrl).href;
});
let routeUrls = routes.reduce((urls, r) => {
if (r.type !== "page")
return urls;
if (r.pathname) {
const path = finalSiteUrl.pathname + r.generate(r.pathname).substring(1);
let newUrl = new URL(path, finalSiteUrl).href;
if (isStatusCodePage(r.pathname ?? r.route))
return urls;
let fullPath = finalSiteUrl.pathname;
if (fullPath.endsWith("/"))
fullPath += r.generate(r.pathname).substring(1);
else
fullPath += r.generate(r.pathname);
let newUrl = new URL(fullPath, finalSiteUrl).href;
if (config.trailingSlash === "never") {

@@ -66,2 +82,3 @@ urls.push(newUrl);

}, []);
pageUrls = Array.from(/* @__PURE__ */ new Set([...pageUrls, ...routeUrls, ...customPages ?? []]));
try {

@@ -76,3 +93,2 @@ if (filter) {

}
pageUrls = Array.from(/* @__PURE__ */ new Set([...pageUrls, ...routeUrls, ...customPages ?? []]));
if (pageUrls.length === 0) {

@@ -104,10 +120,14 @@ logger.warn(`No pages found!

}
await simpleSitemapAndIndex({
hostname: finalSiteUrl.href,
destinationDir: fileURLToPath(dir),
sourceData: urlData,
limit: entryLimit,
gzip: false
});
logger.success(`\`${OUTFILE}\` is created.`);
const destDir = fileURLToPath(dir);
await writeSitemap(
{
hostname: finalSiteUrl.href,
destinationDir: destDir,
publicBasePath: config.base,
sourceData: urlData,
limit: entryLimit
},
config
);
logger.info(`\`${OUTFILE}\` created at \`${path.relative(process.cwd(), destDir)}\``);
} catch (err) {

@@ -126,3 +146,4 @@ if (err instanceof ZodError) {

export {
EnumChangefreq as ChangeFreqEnum,
src_default as default
};

@@ -11,13 +11,13 @@ import { EnumChangefreq as ChangeFreq } from 'sitemap';

}, "strip", z.ZodTypeAny, {
defaultLocale: string;
locales: Record<string, string>;
}, {
defaultLocale: string;
}, {
locales: Record<string, string>;
}>, {
defaultLocale: string;
}>, {
locales: Record<string, string>;
}, {
defaultLocale: string;
}, {
locales: Record<string, string>;
defaultLocale: string;
}>>;

@@ -30,27 +30,27 @@ entryLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;

}, "strict", z.ZodTypeAny, {
changefreq?: ChangeFreq | undefined;
priority?: number | undefined;
lastmod?: Date | undefined;
entryLimit: number;
filter?: ((args_0: string, ...args_1: unknown[]) => boolean) | undefined;
customPages?: string[] | undefined;
canonicalURL?: string | undefined;
i18n?: {
defaultLocale: string;
locales: Record<string, string>;
defaultLocale: string;
} | undefined;
serialize?: ((args_0: any, ...args_1: unknown[]) => any) | undefined;
changefreq?: ChangeFreq | undefined;
lastmod?: Date | undefined;
priority?: number | undefined;
}, {
filter?: ((args_0: string, ...args_1: unknown[]) => boolean) | undefined;
customPages?: string[] | undefined;
canonicalURL?: string | undefined;
serialize?: ((args_0: any, ...args_1: unknown[]) => any) | undefined;
entryLimit: number;
}, {
changefreq?: ChangeFreq | undefined;
priority?: number | undefined;
lastmod?: Date | undefined;
i18n?: {
defaultLocale: string;
locales: Record<string, string>;
defaultLocale: string;
} | undefined;
filter?: ((args_0: string, ...args_1: unknown[]) => boolean) | undefined;
customPages?: string[] | undefined;
canonicalURL?: string | undefined;
entryLimit?: number | undefined;
serialize?: ((args_0: any, ...args_1: unknown[]) => any) | undefined;
changefreq?: ChangeFreq | undefined;
lastmod?: Date | undefined;
priority?: number | undefined;
}>>;

@@ -1,1 +0,1 @@

export declare const isObjectEmpty: (o: any) => boolean;
export {};

@@ -1,1 +0,1 @@

export declare const isValidUrl: (s: any) => boolean;
export {};

@@ -1,15 +0,1 @@

import type { SitemapOptions } from './index.js';
export declare const validateOptions: (site: string | undefined, opts: SitemapOptions) => {
changefreq?: import("sitemap").EnumChangefreq | undefined;
priority?: number | undefined;
lastmod?: Date | undefined;
i18n?: {
locales: Record<string, string>;
defaultLocale: string;
} | undefined;
filter?: ((args_0: string, ...args_1: unknown[]) => boolean) | undefined;
customPages?: string[] | undefined;
canonicalURL?: string | undefined;
serialize?: ((args_0: any, ...args_1: unknown[]) => any) | undefined;
entryLimit: number;
};
export {};
{
"name": "@astrojs/sitemap",
"description": "Generate a sitemap for your Astro site",
"version": "0.0.0-redirects-20230511203938",
"version": "0.0.0-toolbar-improvements-20240420123233",
"type": "module",

@@ -31,12 +31,14 @@ "types": "./dist/index.d.ts",

"sitemap": "^7.1.1",
"zod": "^3.17.3"
"stream-replace-string": "^2.0.0",
"zod": "^3.22.4"
},
"devDependencies": {
"chai": "^4.3.6",
"mocha": "^9.2.2",
"xml2js": "0.5.0",
"@astrojs/node": "5.1.2",
"astro": "0.0.0-redirects-20230511203938",
"xml2js": "0.6.2",
"@astrojs/node": "8.2.5",
"astro": "0.0.0-toolbar-improvements-20240420123233",
"astro-scripts": "0.0.14"
},
"publishConfig": {
"provenance": true
},
"scripts": {

@@ -46,4 +48,4 @@ "build": "astro-scripts build \"src/**/*.ts\" && tsc",

"dev": "astro-scripts dev \"src/**/*.ts\"",
"test": "mocha --timeout 20000"
"test": "astro-scripts test \"test/**/*.test.js\""
}
}
# @astrojs/sitemap 🗺
This **[Astro integration][astro-integration]** generates a sitemap based on your routes when you build your Astro project.
This **[Astro integration][astro-integration]** generates a sitemap based on your pages when you build your Astro project.
## Documentation
- <strong>[Why Astro Sitemap](#why-astro-sitemap)</strong>
- <strong>[Installation](#installation)</strong>
- <strong>[Usage](#usage)</strong>
- <strong>[Configuration](#configuration)</strong>
- <strong>[Examples](#examples)</strong>
- <strong>[Troubleshooting](#troubleshooting)</strong>
- <strong>[Contributing](#contributing)</strong>
- <strong>[Changelog](#changelog)</strong>
Read the [`@astrojs/sitemap` docs][docs]
## Why Astro Sitemap
## Support
A Sitemap is an XML file that outlines all of the pages, videos, and files on your site. Search engines like Google read this file to crawl your site more efficiently. [See Google's own advice on sitemaps](https://developers.google.com/search/docs/advanced/sitemaps/overview) to learn more.
- Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more!
A sitemap file is recommended for large multi-page sites. If you don't use a sitemap, most search engines will still be able to list your site's pages, but a sitemap is a great way to ensure that your site is as search engine friendly as possible.
- Check our [Astro Integration Documentation][astro-integration] for more on integrations.
With Astro Sitemap, you don't have to worry about creating this file: build your Astro site how you normally would, and the Astro Sitemap integration will crawl your routes and create the sitemap file.
- Submit bug reports and feature requests as [GitHub issues][issues].
## Installation
## Contributing
### Quick Install
The `astro add` command-line tool automates the installation for you. Run one of the following commands in a new terminal window. (If you aren't sure which package manager you're using, run the first command.) Then, follow the prompts, and type "y" in the terminal (meaning "yes") for each one.
```sh
# Using NPM
npx astro add sitemap
# Using Yarn
yarn astro add sitemap
# Using PNPM
pnpm astro add sitemap
```
If you run into any issues, [feel free to report them to us on GitHub](https://github.com/withastro/astro/issues) and try the manual installation steps below.
This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started:
### Manual Install
First, install the `@astrojs/sitemap` package using your package manager. If you're using npm or aren't sure, run this in the terminal:
```sh
npm install @astrojs/sitemap
```
Then, apply this integration to your `astro.config.*` file using the `integrations` property:
- [Contributor Manual][contributing]
- [Code of Conduct][coc]
- [Community Guide][community]
__`astro.config.mjs`__
## License
```js ins={2} "sitemap()"
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
MIT
export default defineConfig({
// ...
integrations: [sitemap()],
})
```
Copyright (c) 2023–present [Astro][astro]
## Usage
`@astrojs/sitemap` requires a deployment / site URL for generation. Add your site's URL under your `astro.config.*` using the `site` property. This must begin with `http:` or `https:`.
__`astro.config.mjs`__
```js
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
// ...
site: 'https://stargazers.club',
integrations: [sitemap()],
})
```
Note that unlike other configuration options, `site` is set in the root `defineConfig` object, rather than inside the `sitemap()` call.
Now, [build your site for production](https://docs.astro.build/en/reference/cli-reference/#astro-build) via the `astro build` command. You should find your sitemap under `dist/` for both `sitemap-index.xml` and `sitemap-0.xml`!
> **Warning**
> If you forget to add a `site`, you'll get a friendly warning when you build, and the `sitemap-index.xml` file won't be generated.
After verifying that the sitemaps are built, you can add them to your site's `<head>` and the `robots.txt` file for crawlers to pick up.
```html ins={3}
// src/layouts/Layout.astro
<head>
<link rel="sitemap" href="/sitemap-index.xml">
</head>
```
```yaml ins={4} title="public/robots.txt"
User-agent: *
Allow: /
Sitemap: https://<YOUR SITE>/sitemap-index.xml
```
### Example of generated files for a two-page website
**`sitemap-index.xml`**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://stargazers.club/sitemap-0.xml</loc>
</sitemap>
</sitemapindex>
```
**`sitemap-0.xml`**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>https://stargazers.club/</loc>
</url>
<url>
<loc>https://stargazers.club/second-page/</loc>
</url>
</urlset>
```
## Configuration
To configure this integration, pass an object to the `sitemap()` function call in `astro.config.mjs`.
__`astro.config.mjs`__
```js
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
integrations: [sitemap({
filter: ...
})]
});
```
### filter
All pages are included in your sitemap by default. By adding a custom `filter` function, you can filter included pages by URL.
__`astro.config.mjs`__
```js
...
sitemap({
filter: (page) => page !== 'https://stargazers.club/secret-vip-lounge'
}),
```
The function will be called for every page on your site. The `page` function parameter is the full URL of the page currently under considering, including your `site` domain. Return `true` to include the page in your sitemap, and `false` to leave it out.
To filter multiple pages, add arguments with target URLs.
__`astro.config.mjs`__
```js
...
sitemap({
filter: (page) =>
page !== "https://stargazers.club/secret-vip-lounge-1" &&
page !== "https://stargazers.club/secret-vip-lounge-2" &&
page !== "https://stargazers.club/secret-vip-lounge-3" &&
page !== "https://stargazers.club/secret-vip-lounge-4",
}),
```
### customPages
In some cases, a page might be part of your deployed site but not part of your Astro project. If you'd like to include a page in your sitemap that _isn't_ created by Astro, you can use this option.
__`astro.config.mjs`__
```js
...
sitemap({
customPages: ['https://stargazers.club/external-page', 'https://stargazers.club/external-page2']
}),
```
### entryLimit
The maximum number entries per sitemap file. The default value is 45000. A sitemap index and multiple sitemaps are created if you have more entries. See this [explanation of splitting up a large sitemap](https://developers.google.com/search/docs/advanced/sitemaps/large-sitemaps).
__`astro.config.mjs`__
```js
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://stargazers.club',
integrations: [
sitemap({
entryLimit: 10000,
}),
],
});
```
### changefreq, lastmod, and priority
These options correspond to the `<changefreq>`, `<lastmod>`, and `<priority>` tags in the [Sitemap XML specification.](https://www.sitemaps.org/protocol.html)
Note that `changefreq` and `priority` are ignored by Google.
> **Note**
> Due to limitations of Astro's [Integration API](https://docs.astro.build/en/reference/integrations-reference/), this integration can't analyze a given page's source code. This configuration option can set `changefreq`, `lastmod` and `priority` on a _site-wide_ basis; see the next option **serialize** for how you can set these values on a per-page basis.
__`astro.config.mjs`__
```js
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://stargazers.club',
integrations: [
sitemap({
changefreq: 'weekly',
priority: 0.7,
lastmod: new Date('2022-02-24'),
}),
],
});
```
### serialize
A function called for each sitemap entry just before writing to a disk. This function can be asynchronous.
It receives as its parameter a `SitemapItem` object that can have these properties:
- `url` (absolute page URL). This is the only property that is guaranteed to be on `SitemapItem`.
- `changefreq`
- `lastmod` (ISO formatted date, `String` type)
- `priority`
- `links`.
This `links` property contains a `LinkItem` list of alternate pages including a parent page.
The `LinkItem` type has two fields: `url` (the fully-qualified URL for the version of this page for the specified language) and `lang` (a supported language code targeted by this version of the page).
The `serialize` function should return `SitemapItem`, touched or not.
The example below shows the ability to add sitemap specific properties individually.
__`astro.config.mjs`__
```js
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://stargazers.club',
integrations: [
sitemap({
serialize(item) {
if (/exclude-from-sitemap/.test(item.url)) {
return undefined;
}
if (/your-special-page/.test(item.url)) {
item.changefreq = 'daily';
item.lastmod = new Date();
item.priority = 0.9;
}
return item;
},
}),
],
});
```
### i18n
To localize a sitemap, pass an object to this `i18n` option.
This object has two required properties:
- `defaultLocale`: `String`. Its value must exist as one of `locales` keys.
- `locales`: `Record<String, String>`, key/value - pairs. The key is used to look for a locale part in a page path. The value is a language attribute, only English alphabet and hyphen allowed.
[Read more about language attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang).
[Read more about localization](https://developers.google.com/search/docs/advanced/crawling/localized-versions#all-method-guidelines).
__`astro.config.mjs`__
```js
import { defineConfig } from 'astro/config';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://stargazers.club',
integrations: [
sitemap({
i18n: {
defaultLocale: 'en', // All urls that don't contain `es` or `fr` after `https://stargazers.club/` will be treated as default locale, i.e. `en`
locales: {
en: 'en-US', // The `defaultLocale` value must present in `locales` keys
es: 'es-ES',
fr: 'fr-CA',
},
},
}),
],
});
```
The resulting sitemap looks like this:
```xml
...
<url>
<loc>https://stargazers.club/</loc>
<xhtml:link rel="alternate" hreflang="en-US" href="https://stargazers.club/"/>
<xhtml:link rel="alternate" hreflang="es-ES" href="https://stargazers.club/es/"/>
<xhtml:link rel="alternate" hreflang="fr-CA" href="https://stargazers.club/fr/"/>
</url>
<url>
<loc>https://stargazers.club/es/</loc>
<xhtml:link rel="alternate" hreflang="en-US" href="https://stargazers.club/"/>
<xhtml:link rel="alternate" hreflang="es-ES" href="https://stargazers.club/es/"/>
<xhtml:link rel="alternate" hreflang="fr-CA" href="https://stargazers.club/fr/"/>
</url>
<url>
<loc>https://stargazers.club/fr/</loc>
<xhtml:link rel="alternate" hreflang="en-US" href="https://stargazers.club/"/>
<xhtml:link rel="alternate" hreflang="es-ES" href="https://stargazers.club/es/"/>
<xhtml:link rel="alternate" hreflang="fr-CA" href="https://stargazers.club/fr/"/>
</url>
<url>
<loc>https://stargazers.club/es/second-page/</loc>
<xhtml:link rel="alternate" hreflang="es-ES" href="https://stargazers.club/es/second-page/"/>
<xhtml:link rel="alternate" hreflang="fr-CA" href="https://stargazers.club/fr/second-page/"/>
<xhtml:link rel="alternate" hreflang="en-US" href="https://stargazers.club/second-page/"/>
</url>
...
```
## Examples
- The official Astro website uses Astro Sitemap to generate [its sitemap](https://astro.build/sitemap-index.xml).
- The [integrations playground template](https://github.com/withastro/astro/tree/latest/examples/integrations-playground?on=github) comes with Astro Sitemap installed. Try adding a route and building the project!
- [Browse projects with Astro Sitemap on GitHub](https://github.com/search?q=%22@astrojs/sitemap%22+filename:package.json&type=Code) for more examples!
## Troubleshooting
For help, check out the `#support` channel on [Discord](https://astro.build/chat). Our friendly Support Squad members are here to help!
You can also check our [Astro Integration Documentation][astro-integration] for more on integrations.
## Contributing
This package is maintained by Astro's Core team. You're welcome to submit an issue or PR!
## Changelog
See [CHANGELOG.md](CHANGELOG.md) for a history of changes to this integration.
[astro]: https://astro.build/
[docs]: https://docs.astro.build/en/guides/integrations-guide/sitemap/
[contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md
[coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md
[community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md
[discord]: https://astro.build/chat/
[issues]: https://github.com/withastro/astro/issues
[astro-integration]: https://docs.astro.build/en/guides/integrations-guide/

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc