summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/new-otters-sell.md5
-rw-r--r--packages/astro-rss/src/index.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/new-otters-sell.md b/.changeset/new-otters-sell.md
new file mode 100644
index 000000000..b8b03811b
--- /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 47c7c1db4..4d97647f1 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<typeof rssOptionsValidator>['site'];
+ site: z.infer<typeof rssOptionsValidator>['site'] | URL;
/** List of RSS feed items to render. */
items: RSSFeedItem[] | GlobResult;
/** Specify arbitrary metadata on opening <xml> tag */