1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:26:37 -04:00

use next-sitemap server-side instead of manually generating the xml

This commit is contained in:
2022-02-11 10:36:27 -05:00
parent 93356e9472
commit bb807e0e90
5 changed files with 45 additions and 57 deletions

View File

@ -1,8 +1,6 @@
import { buildFeed } from "../lib/build-feed";
import type { GetServerSideProps } from "next";
const AtomFeed = () => 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 AtomFeed;
// eslint-disable-next-line import/no-anonymous-default-export
export default () => null;