Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

remove GSS from 404

Brian Cao08ec801fdc46
diff --git a/pages/404.js b/pages/404.js
index 6a65c3b95..4c85b10a5 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 (
<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,
- },
- };
-}