Skip to content

Commit 51028f8

Browse files
authored
Add URL to RSSOptions.site type (#7964)
1 parent 9ad0d32 commit 51028f8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/new-otters-sell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/rss': patch
3+
---
4+
5+
Add URL to RSSOptions.site type

packages/astro-rss/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type RSSOptions = {
1616
* We recommend using the [endpoint context object](https://docs.astro.build/en/reference/api-reference/#contextsite),
1717
* which includes the `site` configured in your project's `astro.config.*`
1818
*/
19-
site: z.infer<typeof rssOptionsValidator>['site'];
19+
site: z.infer<typeof rssOptionsValidator>['site'] | URL;
2020
/** List of RSS feed items to render. */
2121
items: RSSFeedItem[] | GlobResult;
2222
/** Specify arbitrary metadata on opening <xml> tag */

0 commit comments

Comments
 (0)