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({
|
server.get('/api/v1/**', createProxyMiddleware({
|
||||||
target: 'http://localhost:8999',
|
// @ts-ignore
|
||||||
|
target: win.__env.BACKEND_ABSOLUTE_URL,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
@ -18,7 +18,7 @@ export class AssetsService {
|
|||||||
) {
|
) {
|
||||||
let baseApiUrl = '';
|
let baseApiUrl = '';
|
||||||
if (!this.stateService.isBrowser) {
|
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());
|
this.getAssetsJson$ = this.httpClient.get(baseApiUrl + '/resources/assets.json').pipe(shareReplay());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user