From fd176658dd1e2afe2b383ee14fe80194c2a535f9 Mon Sep 17 00:00:00 2001 From: Hieuhuy Pham Date: Sun, 12 Jan 2025 22:51:20 -0500 Subject: [PATCH] Linting RULES AGAIN, and removing warning error for tailwind --- src/app/api/feed/route.ts | 5 +---- tailwind.config.ts | 1 - 2 files changed, 1 insertion(+), 5 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", }, diff --git a/tailwind.config.ts b/tailwind.config.ts index 68cfa4f..0b829e6 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -17,6 +17,5 @@ export default { darkMode: "class", plugins: [ require("@tailwindcss/typography"), - require("@tailwindcss/line-clamp"), require('@tailwindcss/aspect-ratio')], } satisfies Config;