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