Don't append /api to electrs backend path for SSR
This commit is contained in:
parent
23bac4dc5e
commit
30d8a39eda
@ -17,7 +17,7 @@ export class ElectrsApiService {
|
||||
private stateService: StateService,
|
||||
) {
|
||||
if (!stateService.isBrowser) {
|
||||
API_BASE_URL = this.stateService.env.ELECTRS_ABSOLUTE_URL + '/api';
|
||||
API_BASE_URL = this.stateService.env.ELECTRS_ABSOLUTE_URL;
|
||||
}
|
||||
this.apiBaseUrl = API_BASE_URL.replace('{network}', '');
|
||||
this.stateService.networkChanged$.subscribe((network) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user