umami/src/app/(app)/console/[[...id]]/page.tsx

16 lines
273 B
TypeScript
Raw Normal View History

2023-09-29 12:29:22 +00:00
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 />;
}