feat: backfill profile id on events

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-02-18 17:42:17 +01:00
parent 7e2d93db45
commit ee27568824
7 changed files with 160 additions and 5 deletions

View File

@@ -67,6 +67,10 @@ export const TABLE_NAMES = {
* Non-clustered mode = self-hosted environments
*/
export function isClickhouseClustered(): boolean {
if (process.env.CLICKHOUSE_CLUSTER === 'true' || process.env.CLICKHOUSE_CLUSTER === '1') {
return true
}
return !(
process.env.SELF_HOSTED === 'true' || process.env.SELF_HOSTED === '1'
);