mirror of
https://github.com/mempool/mempool.git
synced 2025-04-02 08:58:17 +02:00
Update absolute url config variables.
This commit is contained in:
parent
aaf9d9be9f
commit
e5959f14bc
@ -67,7 +67,8 @@ export function app(): express.Express {
|
||||
}));
|
||||
|
||||
server.get('/api/v1/**', createProxyMiddleware({
|
||||
target: 'http://localhost:8999',
|
||||
// @ts-ignore
|
||||
target: win.__env.BACKEND_ABSOLUTE_URL,
|
||||
changeOrigin: true,
|
||||
},
|
||||
));
|
||||
|
@ -18,7 +18,7 @@ export class AssetsService {
|
||||
) {
|
||||
let baseApiUrl = '';
|
||||
if (!this.stateService.isBrowser) {
|
||||
baseApiUrl = this.stateService.env.ELECTRS_ABSOLUTE_URL;
|
||||
baseApiUrl = this.stateService.env.BACKEND_ABSOLUTE_URL;
|
||||
}
|
||||
|
||||
this.getAssetsJson$ = this.httpClient.get(baseApiUrl + '/resources/assets.json').pipe(shareReplay());
|
||||
|
Loading…
x
Reference in New Issue
Block a user