Skip to content

Commit b1b00ab

Browse files
Gavin-Fitzpatrickmarkzegarelli
andauthored
Add example that shows how to set the host to the EU endpoint (#3662)
* Update index.md We're facing a lot of confusion from customers on how to change the host to point towards to EU. Usually when we show them a code example they understand. * Update src/connections/sources/catalog/libraries/server/node/index.md Co-authored-by: markzegarelli <[email protected]>
1 parent 5027d99 commit b1b00ab

File tree

1 file changed

+9
-1
lines changed
  • src/connections/sources/catalog/libraries/server/node

1 file changed

+9
-1
lines changed

src/connections/sources/catalog/libraries/server/node/index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ This will create an instance of `Analytics` that you can use to send data to Seg
3535
### Regional configuration
3636
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
3737
1. Oregon (Default) — `api.segment.io/v1`
38-
2. Dublin — `events.eu1.segmentapis.com/v1/`
38+
2. Dublin — `events.eu1.segmentapis.com`
39+
40+
An example of setting the host to the EU endpoint using the Node library would be:
41+
```javascript
42+
var analytics = new Analytics('YOUR_WRITE_KEY', {
43+
host: "https://events.eu1.segmentapis.com"
44+
});
45+
```
46+
3947
## Identify
4048

4149
> note ""

0 commit comments

Comments
 (0)