From 08ec801fdc465f932f895aa8104661b279d9cf19 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Thu, 27 Oct 2022 14:48:21 -0700 Subject: [PATCH] remove GSS from 404 --- pages/404.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pages/404.js b/pages/404.js index 6a65c3b9..4c85b10a 100644 --- a/pages/404.js +++ b/pages/404.js @@ -2,11 +2,7 @@ import React from 'react'; import Layout from 'components/layout/Layout'; import { FormattedMessage } from 'react-intl'; -export default function Custom404({ pageDisabled }) { - if (pageDisabled) { - return null; - } - +export default function Custom404() { return (
@@ -17,11 +13,3 @@ export default function Custom404({ pageDisabled }) { ); } - -export async function getServerSideProps() { - return { - props: { - pageDisabled: !!process.env.DISABLE_UI, - }, - }; -}