rsbuild-plugin-posthog is a Rsbuild plugin for Posthog.
Install:
npm add rsbuild-plugin-posthog -DAdd plugin to your rsbuild.config.ts:
// rsbuild.config.ts
import { pluginPosthog } from 'rsbuild-plugin-posthog';
export default {
plugins: [pluginPosthog({
apiKey: 'xxx',
apiHost: 'xxxx'
})],
};Here are the available options:
| Name | Type |
|---|---|
| apiKey | string |
| apiHost | string |
MIT.