Skip to content

Commit cce8e72

Browse files
committed
Update exportAppClient.hbs
1 parent b41705f commit cce8e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/exportAppClient.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class {{{clientName}}} {{#if service}}extends {{{service.name}}} {{/if}}{
2020

2121
constructor(openApiConfig?: OpenAPIConfig, HttpRequest: new (config: OpenAPIConfig2) => BaseHttpRequest = {{{httpClientRequest}}}) {
2222
{{#if service}}const request{{else}}this.request{{/if}} = new HttpRequest({
23-
base: '{{{server}}}',
23+
base: process.env.REACT_APP_{{{clientName}}}_OVERRIDE || '{{{server}}}',
2424
edge: openApiConfig?.edge ?? '{{#if server.edgeRegions}}{{server.edgeRegions.[0]}}{{else}}gll{{/if}}',
2525
version: '{{{version}}}',
2626
token: openApiConfig?.token,

0 commit comments

Comments
 (0)