chore: myriad fixes + genre pages

This commit is contained in:
Cory Dransfeldt 2024-11-18 09:57:12 -08:00
parent 67ab04b241
commit 0d8408c680
No known key found for this signature in database
28 changed files with 1963 additions and 238 deletions

View file

@ -2,8 +2,6 @@ import { generateRssFeed } from "@utils/generateRssFeed";
import { fetchGlobals } from "@utils/data/globals.js";
import { fetchBooks } from "@utils/data/books.js";
export const prerender = true;
export async function GET() {
const globals = await fetchGlobals();
const books = await fetchBooks();
@ -15,10 +13,6 @@ export async function GET() {
data: books.feed,
});
const filePath = path.resolve("public/feeds/books.xml");
await fs.mkdir(path.dirname(filePath), { recursive: true });
await fs.writeFile(filePath, rss);
return new Response(rss, {
status: 200,
headers: {