Skip to content

Commit

Permalink
Omit facetec
Browse files Browse the repository at this point in the history
* feat: qa environment is now allowed #86du5b5h3
  • Loading branch information
alejandro25262 committed Aug 7, 2024
1 parent 7931c1d commit b3eb6d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/api-client-auth/src/Config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class Config {
production: 'https://app.mifiel.com',
sandbox: 'https://app-sandbox.mifiel.com',
staging: 'https://app-stageex.mifiel.com',
qa: 'https://app-qa.mifiel.com',
};

const currentHost = hosts[this._env || 'production'];
Expand All @@ -49,6 +50,10 @@ export class Config {
this._env = 'staging';
}

static useQA() {
this._env = 'qa';
}

static useProduction() {
this._env = 'production';
}
Expand Down
1 change: 1 addition & 0 deletions packages/api-client-auth/src/Config/config.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const configParamsSchema = z.object({
.literal('production')
.or(z.literal('sandbox'))
.or(z.literal('staging'))
.or(z.literal('qa'))
.optional(),
});

Expand Down

0 comments on commit b3eb6d5

Please sign in to comment.