mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-28 10:05:48 -04:00
use next-sitemap server-side instead of manually generating the xml
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import { buildFeed } from "../lib/build-feed";
|
||||
import type { GetServerSideProps } from "next";
|
||||
|
||||
const RssFeed = () => null;
|
||||
|
||||
export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
const feed = buildFeed();
|
||||
const { res } = context;
|
||||
@@ -18,4 +16,5 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
||||
};
|
||||
};
|
||||
|
||||
export default RssFeed;
|
||||
// eslint-disable-next-line import/no-anonymous-default-export
|
||||
export default () => null;
|
||||
|
||||
Reference in New Issue
Block a user