Skip to content

Commit

Permalink
Add URL to RSSOptions.site type (#7964)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerTimonius authored Aug 7, 2023
1 parent 9ad0d32 commit 51028f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/new-otters-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/rss': patch
---

Add URL to RSSOptions.site type
2 changes: 1 addition & 1 deletion packages/astro-rss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 51028f8

Please sign in to comment.