Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

495 B
Raw Blame
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',
};