remove GSS from 404

This commit is contained in:
Brian Cao 2022-10-27 14:48:21 -07:00
parent 99c975c329
commit 08ec801fdc

View File

@ -2,11 +2,7 @@ import React from 'react';
import Layout from 'components/layout/Layout'; import Layout from 'components/layout/Layout';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
export default function Custom404({ pageDisabled }) { export default function Custom404() {
if (pageDisabled) {
return null;
}
return ( return (
<Layout> <Layout>
<div className="row justify-content-center"> <div className="row justify-content-center">
@ -17,11 +13,3 @@ export default function Custom404({ pageDisabled }) {
</Layout> </Layout>
); );
} }
export async function getServerSideProps() {
return {
props: {
pageDisabled: !!process.env.DISABLE_UI,
},
};
}