Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed May 2, 2024
1 parent ac6f908 commit a72bf08
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
13 changes: 13 additions & 0 deletions lib/rss.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { generateRssFeed } from "@/lib/feed";
import type { NextApiRequest, NextApiResponse } from "next";

export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
const xml = await generateRssFeed();
res.statusCode = 200;
res.setHeader("Cache-Control", "s-maxage=86400, stale-while-revalidate");
res.setHeader("Content-Type", "text/xml");
res.end(xml);
}
16 changes: 0 additions & 16 deletions pages/feed.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions pages/rss.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const Page = (): null => null;
export default Page;

0 comments on commit a72bf08

Please sign in to comment.