20 lines
642 B
TypeScript
20 lines
642 B
TypeScript
export const dynamic = 'force-dynamic';
|
|
|
|
import { AnalyticsComponent } from '@gitroom/frontend/components/analytics/analytics.component';
|
|
import { Metadata } from 'next';
|
|
import { PlatformAnalytics } from '@gitroom/frontend/components/platform-analytics/platform.analytics';
|
|
import { isGeneralServerSide } from '@gitroom/helpers/utils/is.general.server.side';
|
|
|
|
export const metadata: Metadata = {
|
|
title: `${isGeneralServerSide() ? 'Postiz' : 'Gitroom'} Analytics`,
|
|
description: '',
|
|
};
|
|
|
|
export default async function Index() {
|
|
return (
|
|
<>
|
|
{isGeneralServerSide() ? <PlatformAnalytics /> : <AnalyticsComponent />}
|
|
</>
|
|
);
|
|
}
|