Skip to content

Commit 56396f4

Browse files
author
FalkWolsky
committed
Adding Posthog to localhost and public cloud
1 parent 4f07bbd commit 56396f4

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"chalk": "4",
8181
"flag-icons": "^7.2.1",
8282
"number-precision": "^1.6.0",
83-
"posthog-js": "^1.144.1",
83+
"posthog-js": "^1.144.2",
8484
"react-countup": "^6.5.3",
8585
"react-player": "^2.11.0",
8686
"resize-observer-polyfill": "^1.5.1",

client/packages/lowcoder/src/app.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ class AppIndex extends React.Component<AppIndexProps, any> {
112112
const isLowCoderDomain = window.location.hostname === 'app.lowcoder.cloud';
113113
const isLocalhost = window.location.hostname === 'localhost';
114114

115-
isLocalhost || isLowCoderDomain && posthog.init('phc_lD36OXeppUehLgI33YFhioTpXqThZ5QqR8IWeKvXP7f', { api_host: 'https://eu.i.posthog.com', person_profiles: 'always' });
115+
if (isLocalhost || isLowCoderDomain) {
116+
posthog.init('phc_lD36OXeppUehLgI33YFhioTpXqThZ5QqR8IWeKvXP7f', { api_host: 'https://eu.i.posthog.com', person_profiles: 'always' });
117+
}
116118

117119
// make sure all users in this app have checked login info
118120
if (!this.props.isFetchUserFinished) {

client/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13733,7 +13733,7 @@ coolshapes-react@lowcoder-org/coolshapes-react:
1373313733
lowcoder-cli: "workspace:^"
1373413734
mq-polyfill: ^1.1.8
1373513735
number-precision: ^1.6.0
13736-
posthog-js: ^1.144.1
13736+
posthog-js: ^1.144.2
1373713737
prettier: ^3.1.0
1373813738
react-countup: ^6.5.3
1373913739
react-player: ^2.11.0
@@ -16037,14 +16037,14 @@ coolshapes-react@lowcoder-org/coolshapes-react:
1603716037
languageName: node
1603816038
linkType: hard
1603916039

16040-
"posthog-js@npm:^1.144.1":
16041-
version: 1.144.1
16042-
resolution: "posthog-js@npm:1.144.1"
16040+
"posthog-js@npm:^1.144.2":
16041+
version: 1.144.2
16042+
resolution: "posthog-js@npm:1.144.2"
1604316043
dependencies:
1604416044
fflate: ^0.4.8
1604516045
preact: ^10.19.3
1604616046
web-vitals: ^4.0.1
16047-
checksum: ecbd0c9f2bff18ebf866aa5c0f133e0726d8095fe0a6dea6956626670efca8f87824c05057e2de50a2600479beeba13422e95588f7fb0ec6a57f2eb64203c329
16047+
checksum: c856f49a34b825eb0678b40e137affa4a79a29ff64205f059a9a0ad78ce6ac8b3d8413f955e3fa72b08cf91e923e443aedb7e41b2e40c76c1cab20b88fe1c3d7
1604816048
languageName: node
1604916049
linkType: hard
1605016050

0 commit comments

Comments
 (0)