From e5b0eae8d460f46af2139b2629b0ef41a9378835 Mon Sep 17 00:00:00 2001 From: Simon Lindh Date: Sun, 21 Jul 2019 18:35:58 +0300 Subject: [PATCH] User local server in production build. --- frontend/src/app/services/api.service.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/frontend/src/app/services/api.service.ts b/frontend/src/app/services/api.service.ts index 44200a43d..ee7d3a330 100644 --- a/frontend/src/app/services/api.service.ts +++ b/frontend/src/app/services/api.service.ts @@ -5,14 +5,8 @@ import { HttpClient, HttpParams } from '@angular/common/http'; import { IMempoolDefaultResponse, IMempoolStats, IBlockTransaction } from '../blockchain/interfaces'; import { Observable } from 'rxjs'; - -let WEB_SOCKET_URL = 'wss://mempool.space:8999'; -let API_BASE_URL = 'https://mempool.space:8999/api/v1'; - -if (!environment.production) { - WEB_SOCKET_URL = 'ws://localhost:8999'; - API_BASE_URL = '/api/v1'; -} +const WEB_SOCKET_URL = 'ws://localhost:8999'; +const API_BASE_URL = '/api/v1'; @Injectable({ providedIn: 'root'