Skip to content

Commit 88fcf0a

Browse files
committed
key change
1 parent 20e88a4 commit 88fcf0a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

frontend/next.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

1617
const 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}/`

frontend/src/pages/_app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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",

infrastructure/applications/pycon_frontend/task.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
]

0 commit comments

Comments
 (0)