We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21112e commit 2a76539Copy full SHA for 2a76539
src/eventarc/eventarc-client-internal.ts
@@ -102,7 +102,7 @@ export class EventarcApiClient {
102
}
103
const request: HttpRequestConfig = {
104
method: 'POST',
105
- url: `${EVENTARC_API}/${channel}:publishEvents`,
+ url: `${this.getEventarcHost()}/${channel}:publishEvents`,
106
data: JSON.stringify({ events }),
107
};
108
return this.sendRequest(request);
@@ -153,4 +153,8 @@ export class EventarcApiClient {
153
const projectId = await this.getProjectId();
154
return `projects/${projectId}/locations/${location}/channels/${channelId}`;
155
156
+
157
+ private getEventarcHost(): string {
158
+ return process.env.CLOUD_EVENTARC_EMULATOR_HOST ?? EVENTARC_API;
159
+ }
160
0 commit comments