Skip to content

Commit

Permalink
update module yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Jul 25, 2024
1 parent 65270ae commit 22d79b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions modules/posthog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ export default defineNuxtModule<ModuleOptions>({
},
defaults: {
publicKey: process.env.POSTHOG_API_KEY as string,
host: process.env.DEPLOY_PRIME_URL
? `${process.env.DEPLOY_PRIME_URL}/ingest`
: (process.env.POSTHOG_API_HOST as string),
host: process.env.POSTHOG_API_HOST as string,
capturePageViews: true,
disabled: false,
},
Expand Down
2 changes: 1 addition & 1 deletion modules/posthog/runtime/plugins/posthog.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineNuxtPlugin({

const clientOptions = defu<PostHogConfig, Partial<PostHogConfig>[]>(config.clientOptions ?? {}, {
api_host: config.host,
ui_host: '<ph_app_host>',
ui_host: 'https://us.posthog.com',
capture_pageview: false,
bootstrap: {
featureFlags: posthogFeatureFlags.value,
Expand Down

0 comments on commit 22d79b8

Please sign in to comment.