Skip to content

Commit a367474

Browse files
committed
Use the modern api ingestion endpoint by default.
1 parent ec15751 commit a367474

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

examples/feature_flag_demo/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A simple console application to demonstrate PostHog feature flag functionality.
1212
2. Set your PostHog API key and URL:
1313
```bash
1414
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
1616
```
1717

1818
## Usage

examples/feature_flag_demo/lib/feature_flag_demo.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule FeatureFlagDemo do
33
A simple console application to demonstrate PostHog feature flag functionality.
44
"""
55

6-
@default_api_url "https://app.posthog.com"
6+
@default_api_url "https://us.i.posthog.com"
77

88
def main(args) do
99
print_info(:config)

lib/posthog.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule Posthog do
1414
Add your PostHog configuration to your application config:
1515
1616
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
1818
api_key: "phc_your_project_api_key"
1919
2020
Optional configuration:

lib/posthog/client.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule Posthog.Client do
1818
The client uses the following configuration from your application:
1919
2020
config :posthog,
21-
api_url: "https://app.posthog.com", # Required
21+
api_url: "https://us.i.posthog.com", # Required
2222
api_key: "phc_your_project_api_key", # Required
2323
json_library: Jason, # Optional (default: Jason)
2424
enabled_capture: true, # Optional (default: true)

lib/posthog/config.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule Posthog.Config do
2323
PostHog API URL is not configured. Please add it to your config:
2424
2525
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
2727
"""
2828

2929
url ->
@@ -32,7 +32,7 @@ defmodule Posthog.Config do
3232
3333
Expected a non-empty string URL, for example:
3434
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
3636
"""
3737
end
3838
end

0 commit comments

Comments
 (0)