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 b41705f commit cce8e72Copy full SHA for cce8e72
src/templates/exportAppClient.hbs
@@ -20,7 +20,7 @@ export class {{{clientName}}} {{#if service}}extends {{{service.name}}} {{/if}}{
20
21
constructor(openApiConfig?: OpenAPIConfig, HttpRequest: new (config: OpenAPIConfig2) => BaseHttpRequest = {{{httpClientRequest}}}) {
22
{{#if service}}const request{{else}}this.request{{/if}} = new HttpRequest({
23
- base: '{{{server}}}',
+ base: process.env.REACT_APP_{{{clientName}}}_OVERRIDE || '{{{server}}}',
24
edge: openApiConfig?.edge ?? '{{#if server.edgeRegions}}{{server.edgeRegions.[0]}}{{else}}gll{{/if}}',
25
version: '{{{version}}}',
26
token: openApiConfig?.token,
0 commit comments