From f7e6f42216c3cbeab9add475a61bb407c6be3519 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 30 Nov 2023 13:12:45 +0100
Subject: refactor(pages): refine RSS feed

* add favicon
* add item categories
* add item image
* add item author
* add item update date (it seems `date` is used as update date by Feed)
* change copyright format
* fix ESlint errors
* fix atom and json links
---
 src/pages/feed.json.tsx | 24 ------------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 src/pages/feed.json.tsx

(limited to 'src/pages/feed.json.tsx')

diff --git a/src/pages/feed.json.tsx b/src/pages/feed.json.tsx
deleted file mode 100644
index 7c77e19..0000000
--- a/src/pages/feed.json.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { GetServerSideProps } from 'next';
-import { generateFeed } from '../utils/helpers';
-
-const Feed = () => null;
-
-export const getServerSideProps: GetServerSideProps = async ({ res }) => {
-  const feed = await generateFeed();
-
-  if (res) {
-    res.setHeader(
-      'Cache-Control',
-      'public, s-maxage=600, stale-while-revalidate=59'
-    );
-    res.setHeader('Content-Type', 'application/json');
-    res.write(`${feed.json1()}`);
-    res.end();
-  }
-
-  return {
-    props: {},
-  };
-};
-
-export default Feed;
-- 
cgit v1.2.3

