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

@ -3,9 +3,10 @@ import { fetchGlobals } from "@utils/data/globals.js";
import { fetchBooks } from "@utils/data/books.js";
export async function GET() {
const globals = await fetchGlobals();
const books = await fetchBooks();
const [globals, books] = await Promise.all([
fetchGlobals(),
fetchBooks(),
]);
const rss = generateRssFeed({
permalink: "/feeds/books.xml",
title: "Books feed",