@posthog/nextjs-config
Version:
NextJS configuration helper for Posthog 🦔
12 lines (11 loc) • 526 B
TypeScript
import type { NextConfig } from 'next';
import { PluginConfig } from '@posthog/webpack-plugin';
type NextFuncConfig = (phase: string, { defaultConfig }: {
defaultConfig: NextConfig;
}) => NextConfig;
type NextAsyncConfig = (phase: string, { defaultConfig }: {
defaultConfig: NextConfig;
}) => Promise<NextConfig>;
type UserProvidedConfig = NextConfig | NextFuncConfig | NextAsyncConfig;
export declare function withPostHogConfig(userNextConfig: UserProvidedConfig, posthogConfig: PluginConfig): NextConfig;
export {};