Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/src/services/eagleEyeContentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { API_CONFIG } from '../config'
import SequelizeRepository from '../database/repositories/sequelizeRepository'
import { IServiceOptions } from './IServiceOptions'
import EagleEyeContentRepository from '../database/repositories/eagleEyeContentRepository'
import Error400 from '../errors/Error403'
import Error400 from '../errors/Error400'
import track from '../segment/track'
import { LoggingBase } from './loggingBase'

Expand Down
1 change: 1 addition & 0 deletions frontend/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ declare -a ENV_VARIABLES=(
"VUE_APP_HOTJAR_KEY"
"VUE_APP_ENV"
"VUE_APP_POSTHOG_API_KEY"
"VUE_APP_POSTHOG_HOST"
"VUE_APP_TYPEFORM_ID"
"VUE_APP_TYPEFORM_TITLE"
)
Expand Down
10 changes: 8 additions & 2 deletions frontend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ const defaultConfig = {
hotjarKey: process.env.VUE_APP_HOTJAR_KEY,
typeformId: process.env.VUE_APP_TYPEFORM_ID,
typeformTitle: process.env.VUE_APP_TYPEFORM_TITLE,
posthogKey: process.env.VUE_APP_POSTHOG_API_KEY
posthog: {
apiKey: process.env.VUE_APP_POSTHOG_API_KEY,
host: process.env.VUE_APP_POSTHOG_HOST
}
}

const composedConfig = {
Expand All @@ -60,7 +63,10 @@ const composedConfig = {
hotjarKey: 'CROWD_VUE_APP_HOTJAR_KEY',
typeformId: 'CROWD_VUE_APP_TYPEFORM_ID',
typeformTitle: 'CROWD_VUE_APP_TYPEFORM_TITLE',
posthogKey: 'CROWD_VUE_APP_POSTHOG_API_KEY'
posthog: {
apiKey: 'CROWD_VUE_APP_POSTHOG_API_KEY',
host: 'CROWD_VUE_APP_POSTHOG_HOST'
}
}

const config = defaultConfig.backendUrl
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ i18nInit()

// Initialize posthog for crowd hosted version
if (!config.isCommunityVersion) {
posthog.init(config.posthogKey, {
posthog.init(config.posthog.apiKey, {
api_host: config.posthog.host,
autocapture: false,
capture_pageview: false,
persistence: 'cookie'
Expand Down