Updates to Revenue report.
This commit is contained in:
22
src/app/(main)/console/[websiteId]/page.tsx
Normal file
22
src/app/(main)/console/[websiteId]/page.tsx
Normal 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',
|
||||
};
|
||||
Reference in New Issue
Block a user