import { GrpcOptions , Transport } from '@nestjs/microservices' ; const env = process . env ; export const grpcChat = { transport : Transport . GRPC , options : { url : env . GRPC_CHAT_SERVICE || '127.0.0.1:8003' , package : 'api.chat' , protoPath : './libs/grpc-proto/chat/index.proto' , } , } as GrpcOptions ; export const grpcAuth = { transport : Transport . GRPC , options : { url : env . GRPC_AUTH_SERVICE || '127.0.0.1:8002' , package : 'api.auth' , protoPath : './libs/grpc-proto/auth/index.proto' , } , } as GrpcOptions ; export const grpcUser = { transport : Transport . GRPC , options : { url : env . GRPC_USER_SERVICE || '127.0.0.1:8001' , package : 'api.user' , protoPath : './libs/grpc-proto/user/index.proto' , } , } as GrpcOptions ;