mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
16 lines
273 B
TypeScript
16 lines
273 B
TypeScript
|
|
import TestConsole from '../TestConsole';
|
||
|
|
|
||
|
|
async function getEnabled() {
|
||
|
|
return !!process.env.ENABLE_TEST_CONSOLE;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default async function ConsolePage() {
|
||
|
|
const enabled = await getEnabled();
|
||
|
|
|
||
|
|
if (!enabled) {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
return <TestConsole />;
|
||
|
|
}
|