chore: myriad fixes + genre pages
This commit is contained in:
parent
67ab04b241
commit
0d8408c680
28 changed files with 1963 additions and 238 deletions
|
@ -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: {
|
||||
|
|
Reference in a new issue