User local server in production build.

This commit is contained in:
Simon Lindh 2019-07-21 18:35:58 +03:00
parent fd2209e75a
commit e5b0eae8d4

View File

@ -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'