Skip to content

Commit

Permalink
fix: 🩹 env type to string
Browse files Browse the repository at this point in the history
  • Loading branch information
TrejoCode committed Mar 26, 2024
1 parent 4e47906 commit d5efaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import 'styles/globals.css';

if (typeof window !== 'undefined') {
// checks that we are client-side
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY, {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY as string, {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST || 'https://app.posthog.com',
loaded: (posthog) => {
if (process.env.NODE_ENV === 'development') posthog.debug(); // debug mode in development
Expand Down

0 comments on commit d5efaf3

Please sign in to comment.