Skip to content

Commit

Permalink
fix next.config rewrite fo posthog
Browse files Browse the repository at this point in the history
  • Loading branch information
MarconLP committed Jul 17, 2023
1 parent 1cf5c60 commit 157a912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config = {

async rewrites() {
return [
...(!!env.POSTHOG_PROXY_PATH && !env.NEXT_PUBLIC_POSTHOG_HOST ? [{
...(!!env.POSTHOG_PROXY_PATH && !!env.NEXT_PUBLIC_POSTHOG_HOST ? [{
source: "/" + env.POSTHOG_PROXY_PATH + "/:path*",
destination: env.NEXT_PUBLIC_POSTHOG_HOST + "/:path*",
}]: []),
Expand Down

1 comment on commit 157a912

@vercel
Copy link

@vercel vercel bot commented on 157a912 Jul 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.