mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +00:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
export function getInsightsConfig(): { key: string; host: string } | null {
|
|
const insightsKey = process.env.NEXT_PUBLIC_INSIGHTS_KEY;
|
|
const insightsHost = `${process.env.NEXT_PUBLIC_BASE_URL}/ingest`;
|
|
|
|
if (!insightsKey || !insightsHost) {
|
|
return null;
|
|
}
|
|
|
|
return {
|
|
key: insightsKey,
|
|
host: insightsHost,
|
|
};
|
|
}
|