Revert default RSS feed generated to rss.xml (0.21 changed to feed.xml) (#2172)

* Create sandbox.config.json specifying port 3000

* Update sandbox.config.json

* Create sandbox.config.json for blog example

* Create sandbox.config.json for multiple authors blog

* added sandbox config to portfolios

* [ci] yarn format

* added sandbox.config.json to more frameworks examples

* [ci] yarn format

* reverted default rss to rss.xml

Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
This commit is contained in:
Sarah Rainsberger 2021-12-13 17:30:24 -04:00 committed by GitHub
parent b9c5778d45
commit bd1956b72f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ export function generateRssFunction(site: string | undefined, route: RouteData):
throw new Error(`[${route.component}] rss() tried to generate RSS but "buildOptions.site" missing in astro.config.mjs`); throw new Error(`[${route.component}] rss() tried to generate RSS but "buildOptions.site" missing in astro.config.mjs`);
} }
const { dest, ...rssData } = args; const { dest, ...rssData } = args;
const feedURL = dest || '/feed.xml'; const feedURL = dest || '/rss.xml';
result.url = feedURL; result.url = feedURL;
result.xml = generateRSS({ rssData, site, srcFile: route.component, feedURL }); result.xml = generateRSS({ rssData, site, srcFile: route.component, feedURL });
}, },