Updates to Revenue report.

This commit is contained in:
Mike Cao
2025-06-11 23:12:10 -07:00
parent 4995a0e1e4
commit 095d1f2070
19 changed files with 365 additions and 416 deletions

View File

@@ -0,0 +1,22 @@
import { 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',
};