checking if env is local to disable ssl

This commit is contained in:
Gabriel Rosa
2022-08-23 09:01:17 -03:00
parent 09e3b3fd33
commit 3bfcc7a412
7 changed files with 25 additions and 7 deletions
@@ -13,7 +13,10 @@ export class TransformationsClientConfiguration {
options: {
url: process.env.INFACTORY_URL,
package: [Transformation.ProtoPackages.WritePackage],
credentials: process.env.LOCAL_ENV ? undefined : credentials.createSsl(),
credentials:
process.env.LOCAL_ENV || process.env.ENV === 'local'
? undefined
: credentials.createSsl(),
protoPath: [Transformation.ProtoPaths.WriteFilePath],
loader: {
enums: String,