mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
23 lines
417 B
JavaScript
23 lines
417 B
JavaScript
import AppLayout from 'components/layout/AppLayout';
|
|
import TestConsole from 'components/pages/console/TestConsole';
|
|
|
|
export default function ConsolePage({ disabled }) {
|
|
if (disabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<TestConsole />
|
|
</AppLayout>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
disabled: !process.env.ENABLE_TEST_CONSOLE,
|
|
},
|
|
};
|
|
}
|