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
@@ -17,7 +17,10 @@ export class ConnectionClientConfiguration {
ConnectionManager.ProtoPackages.ReadPackage,
],
// credentials: undefined,
credentials: process.env.LOCAL_ENV ? undefined : credentials.createSsl(),
credentials:
process.env.LOCAL_ENV || process.env.ENV === 'local'
? undefined
: credentials.createSsl(),
protoPath: [
ConnectionManager.ProtoPaths.WriteFilePath,
ConnectionManager.ProtoPaths.ReadFilePath,