Skip to content

Commit f39e023

Browse files
authored
Merge pull request #4576 from segmentio/Hopes-Chantel-patch-2
Update Regional Endpoint doc to provide examples
2 parents 6504cdf + f0331ff commit f39e023

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/guides/regional-segment.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@ All Segment client-side SDKs read this setting and update themselves automatical
5050

5151
### Server-side and project sources
5252
When you send data from a server-side or project source, you can use the `host` configuration parameter to send data to the desired region:
53-
1. Oregon (Default) — `api.segment.io/v1`
54-
2. Dublin — `events.eu1.segmentapis.com/`
53+
1. Oregon (Default) — `https://events.segmentapis.com/v1`
54+
2. Dublin — `https://events.eu1.segmentapis.com/`
55+
56+
Here is an example of how to set the host:
57+
58+
```json
59+
Analytics.Initialize("<YOUR WRITEKEY HERE>", new Config().SetHost("https://events.eu1.segmentapis.com (https://events.eu1.segmentapis.com/)"));
60+
```
5561

5662
## Create a new workspace with a different region
5763

0 commit comments

Comments
 (0)