From 51028f85c68944872a65b4bc0b8fcb6c3f3cf496 Mon Sep 17 00:00:00 2001 From: Timon Jurschitsch <103483059+DerTimonius@users.noreply.github.com> Date: Mon, 7 Aug 2023 10:49:55 +0200 Subject: [PATCH] Add URL to RSSOptions.site type (#7964) --- .changeset/new-otters-sell.md | 5 +++++ packages/astro-rss/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/new-otters-sell.md diff --git a/.changeset/new-otters-sell.md b/.changeset/new-otters-sell.md new file mode 100644 index 000000000000..b8b03811b6fb --- /dev/null +++ b/.changeset/new-otters-sell.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': patch +--- + +Add URL to RSSOptions.site type diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 47c7c1db42b3..4d97647f14c0 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -16,7 +16,7 @@ export type RSSOptions = { * We recommend using the [endpoint context object](https://docs.astro.build/en/reference/api-reference/#contextsite), * which includes the `site` configured in your project's `astro.config.*` */ - site: z.infer['site']; + site: z.infer['site'] | URL; /** List of RSS feed items to render. */ items: RSSFeedItem[] | GlobResult; /** Specify arbitrary metadata on opening tag */