File tree 5 files changed +6
-6
lines changed
examples/feature_flag_demo
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ A simple console application to demonstrate PostHog feature flag functionality.
12
12
2 . Set your PostHog API key and URL:
13
13
``` bash
14
14
export POSTHOG_API_KEY=" your_project_api_key"
15
- export POSTHOG_API_URL=" https://app .posthog.com" # Or your self-hosted instance
15
+ export POSTHOG_API_URL=" https://us.i .posthog.com" # Or your self-hosted instance
16
16
```
17
17
18
18
## Usage
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ defmodule FeatureFlagDemo do
3
3
A simple console application to demonstrate PostHog feature flag functionality.
4
4
"""
5
5
6
- @ default_api_url "https://app .posthog.com"
6
+ @ default_api_url "https://us.i .posthog.com"
7
7
8
8
def main ( args ) do
9
9
print_info ( :config )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ defmodule Posthog do
14
14
Add your PostHog configuration to your application config:
15
15
16
16
config :posthog,
17
- api_url: "https://app .posthog.com", # Or your self-hosted instance
17
+ api_url: "https://us.i .posthog.com", # Or your self-hosted instance
18
18
api_key: "phc_your_project_api_key"
19
19
20
20
Optional configuration:
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ defmodule Posthog.Client do
18
18
The client uses the following configuration from your application:
19
19
20
20
config :posthog,
21
- api_url: "https://app .posthog.com", # Required
21
+ api_url: "https://us.i .posthog.com", # Required
22
22
api_key: "phc_your_project_api_key", # Required
23
23
json_library: Jason, # Optional (default: Jason)
24
24
enabled_capture: true, # Optional (default: true)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ defmodule Posthog.Config do
23
23
PostHog API URL is not configured. Please add it to your config:
24
24
25
25
config :posthog,
26
- api_url: "https://app .posthog.com" # or your self-hosted instance
26
+ api_url: "https://us.i .posthog.com" # or your self-hosted instance
27
27
"""
28
28
29
29
url ->
@@ -32,7 +32,7 @@ defmodule Posthog.Config do
32
32
33
33
Expected a non-empty string URL, for example:
34
34
config :posthog,
35
- api_url: "https://app .posthog.com" # or your self-hosted instance
35
+ api_url: "https://us.i .posthog.com" # or your self-hosted instance
36
36
"""
37
37
end
38
38
end
You can’t perform that action at this time.
0 commit comments