fix next.config rewrite fo posthog
This commit is contained in:
parent
1cf5c60646
commit
157a91247d
1 changed files with 1 additions and 1 deletions
|
|
@ -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*",
|
||||
}]: []),
|
||||
|
|
|
|||
Loading…
Reference in a new issue