mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
remove GSS from 404
This commit is contained in:
parent
99c975c329
commit
08ec801fdc
14
pages/404.js
14
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,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user