chore: cleanup, fixes, refactoring

This commit is contained in:
Cory Dransfeldt 2024-11-18 13:19:07 -08:00
parent 7fbb752dec
commit 1220dd58f9
No known key found for this signature in database
30 changed files with 698 additions and 145 deletions

View file

@ -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, {