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
+4 -1
View File
@@ -16,7 +16,10 @@ export class InputsGrpcClient {
Input.ProtoPackages.WritePackage,
Input.ProtoPackages.ReadPackage,
],
credentials: process.env.LOCAL_ENV ? undefined : credentials.createSsl(),
credentials:
process.env.LOCAL_ENV || process.env.ENV === 'local'
? undefined
: credentials.createSsl(),
protoPath: [
Input.ProtoPaths.WriteFilePath,
Input.ProtoPaths.ReadFilePath,