Skip to content

Commit

Permalink
chore: remove server warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mitjans committed Feb 23, 2024
1 parent 2f8d449 commit e7b4404
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/plugins/posthog.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default defineNuxtPlugin({
const config = useRuntimeConfig().public.posthog;

if (config.publicKey.length === 0) {
console.warn('PostHog public key is not defined. Skipping PostHog setup.');
// PostHog public key is not defined. Skipping PostHog setup.
// User has already been warned on dev startup
return {};
}

Expand Down

0 comments on commit e7b4404

Please sign in to comment.