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

21 lines
379 B
TypeScript
Raw Normal View History

2023-09-29 12:29:22 +00:00
import TestConsole from '../TestConsole';
2023-09-30 03:19:27 +00:00
import { Metadata } from 'next';
2023-09-29 12:29:22 +00:00
async function getEnabled() {
return !!process.env.ENABLE_TEST_CONSOLE;
}
export default async function ConsolePage() {
const enabled = await getEnabled();
if (!enabled) {
return null;
}
return <TestConsole />;
}
2023-09-30 03:19:27 +00:00
export const metadata: Metadata = {
title: 'Test Console | umami',
};