umami/src/app/(main)/console/[websiteId]/page.tsx
2025-11-22 22:42:42 -08:00

22 lines
495 B
TypeScript

import type { Metadata } from 'next';
import { TestConsolePage } from './TestConsolePage';
async function getEnabled() {
return !!process.env.ENABLE_TEST_CONSOLE;
}
export default async function ({ params }: { params: Promise<{ websiteId: string }> }) {
const { websiteId } = await params;
const enabled = await getEnabled();
if (!enabled) {
return null;
}
return <TestConsolePage websiteId={websiteId} />;
}
export const metadata: Metadata = {
title: 'Test Console',
};