From 37411d7330781100b8c2b1924682a5b171bb0429 Mon Sep 17 00:00:00 2001 From: JaeSeoKim Date: Sun, 17 Oct 2021 01:11:30 +0900 Subject: [PATCH] fix: sitemap.xml.tsx --- pages/sitemap.xml.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/sitemap.xml.tsx b/pages/sitemap.xml.tsx index 5f18def..7780913 100644 --- a/pages/sitemap.xml.tsx +++ b/pages/sitemap.xml.tsx @@ -7,6 +7,7 @@ export const getServerSideProps: GetServerSideProps = async ({ req, res }) => { if (req.method !== 'GET') { res.statusCode = 405 res.write({ error: 'method not allowed' }) + res.end() return { props: {} }