File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
infrastructure/applications/pycon_frontend Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const {
1111 CMS_ADMIN_HOST = "admin.pycon.it" ,
1212 NEXT_PUBLIC_SITE_URL ,
1313 SENTRY_AUTH_TOKEN ,
14+ POSTHOG_KEY ,
1415} = process . env ;
1516
1617const nextConfig = {
@@ -119,6 +120,7 @@ const nextConfig = {
119120 env : {
120121 API_URL : API_URL ,
121122 conferenceCode : CONFERENCE_CODE || "pycon-demo" ,
123+ POSTHOG_KEY : POSTHOG_KEY ,
122124 cmsHostname : CMS_HOSTNAME ,
123125 NEXT_PUBLIC_SITE_URL : NEXT_PUBLIC_SITE_URL
124126 ? `https://${ NEXT_PUBLIC_SITE_URL } /`
Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ const MyApp = (props) => {
3434 const locale = useCurrentLanguage ( ) ;
3535
3636 useEffect ( ( ) => {
37- console . log ( "process.env" , process . env . NEXT_PUBLIC_POSTHOG_KEY ) ;
3837 try {
39- posthog . init ( process . env . NEXT_PUBLIC_POSTHOG_KEY , {
38+ posthog . init ( process . env . POSTHOG_KEY , {
4039 api_host : `${ window . location . origin } /ingest` ,
4140 ui_host : "https://eu.posthog.com" ,
4241 person_profiles : "identified_only" ,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ resource "aws_ecs_task_definition" "pycon_frontend" {
6060 value = module.secrets.value.sentry_dsn
6161 },
6262 {
63- name = " NEXT_PUBLIC_POSTHOG_KEY " ,
63+ name = " POSTHOG_KEY " ,
6464 value = module.secrets.value.posthog_key
6565 }
6666 ]
You can’t perform that action at this time.
0 commit comments