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:
parent
b9c5778d45
commit
bd1956b72f
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue