summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Timon Jurschitsch <103483059+DerTimonius@users.noreply.github.com> 2023-08-07 10:49:55 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-07 16:49:55 +0800
commit51028f85c68944872a65b4bc0b8fcb6c3f3cf496 (patch)
tree1bda7f9ed508a51cb256cb122e463fc018ef4490
parent9ad0d326f990738c98eeaac35b343aad492520ed (diff)
downloadastro-51028f85c68944872a65b4bc0b8fcb6c3f3cf496.tar.gz
astro-51028f85c68944872a65b4bc0b8fcb6c3f3cf496.tar.zst
astro-51028f85c68944872a65b4bc0b8fcb6c3f3cf496.zip
Add URL to RSSOptions.site type (#7964)
-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 */