We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b791fb0 commit 6470198Copy full SHA for 6470198
src/index.ts
@@ -9,12 +9,14 @@ export const eventHandler = async (
9
) => {
10
const { payload, client } = event
11
12
- let { writeKey, hostname = 'api.segment.io' } = settings
+ let { hostname = 'api.segment.io' } = settings
13
if (payload.hostname) {
14
hostname = payload.hostname
15
}
16
const endpoint = `https://${hostname}/v1/${eventType}`
17
18
+ const { writeKey } = settings
19
+
20
// Prepare new payload
21
const uaParser = new UAParser(client.userAgent).getResult()
22
/* eslint-disable @typescript-eslint/no-explicit-any */
0 commit comments