umami/pages/console/[[...id]].js
2023-07-10 00:33:30 -07:00

23 lines
406 B
JavaScript

import AppLayout from 'components/layout/AppLayout';
import TestConsole from 'components/pages/console/TestConsole';
export default function ({ disabled }) {
if (disabled) {
return null;
}
return (
<AppLayout>
<TestConsole />
</AppLayout>
);
}
export async function getServerSideProps() {
return {
props: {
disabled: !process.env.ENABLE_TEST_CONSOLE,
},
};
}