chore: cleanup, fixes, refactoring
This commit is contained in:
parent
7fbb752dec
commit
1220dd58f9
30 changed files with 698 additions and 145 deletions
|
@ -45,9 +45,10 @@ const generateSyndicationRSS = async (globals, entries) => {
|
|||
|
||||
export async function GET() {
|
||||
try {
|
||||
const globals = await fetchGlobals();
|
||||
const entries = await fetchSyndication();
|
||||
|
||||
const [globals, entries] = await Promise.all([
|
||||
fetchGlobals(),
|
||||
fetchSyndication(),
|
||||
]);
|
||||
const rss = await generateSyndicationRSS(globals, entries);
|
||||
|
||||
return new Response(rss, {
|
||||
|
|
Reference in a new issue