Skip to content

Commit

Permalink
chore: add rerouting to posthog
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvin Januar committed Jun 2, 2024
1 parent 6e93e41 commit 1884302
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions infra/route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@ resource "aws_route53_record" "dns_record_aaaa" {
evaluate_target_health = false
}
}

resource "aws_route53_record" "analytics_dns_record_aaaa" {
zone_id = data.aws_route53_zone.zone.zone_id
name = "posthog.www.alvinjanuar.com"
type = "CNAME"
records = [
"us.i.posthog.com"
]
}
2 changes: 1 addition & 1 deletion src/components/posthog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
(e.__SV = 1));
})(document, window.posthog || []);
posthog.init("phc_9Utfol296QwPeqrpQzwtagBPYXVDjGfDl7kBGt50k5c", {
api_host: "https://us.i.posthog.com",
api_host: "https://posthog.www.alvinjanuar.com",
person_profiles: "identified_only",
});
</script>

0 comments on commit 1884302

Please sign in to comment.