From 8723d5e2dc29f820ccd41fbde920eefb4c5e151c Mon Sep 17 00:00:00 2001 From: inoct Date: Sun, 12 Jan 2025 19:55:16 -0800 Subject: [PATCH] Changes for compilation --- src/app/api/feed/route.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/api/feed/route.ts b/src/app/api/feed/route.ts index e173d86..0c4d4a3 100644 --- a/src/app/api/feed/route.ts +++ b/src/app/api/feed/route.ts @@ -8,9 +8,6 @@ import { Chapter } from "@/lib/types"; const BASE_URL = process.env.BASE_URL || "http://localhost:3000"; export async function GET(){ - const now = new Date(); - const yesterday = subDays(now, 1); - const data = await fetchChaptersRSS(); const feed = new RSS({ @@ -32,7 +29,7 @@ export async function GET(){ const xml = feed.xml({ indent: true }); - return new Response(xml, { + return new NextResponse(xml, { headers: { "Content-Type": "application/xml", },