This repository was archived by the owner on Sep 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed
Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
55
66The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
7+
8+ ## [ Unreleased]
9+
10+ ### Fixed
11+ - fixed data endpoint
12+
713## [ 0.0.71] 2023-07-27
814
915- add GitHub login support
Original file line number Diff line number Diff line change @@ -37,15 +37,14 @@ export function getTuxUrl(): string {
3737}
3838
3939export function getDataUrl ( ) : string {
40- return "http://localhost:8080" ;
41- // const { BASELIME_DOMAIN = "baselime.io" } = process.env;
42- // const index = argv.findIndex((val) => val === "--endpoint");
43- // if (index > -1) {
44- // const endpoint = argv[index + 1];
45- // const domain = getDomainWithoutSubdomain(endpoint);
46- // return `https://data.${domain}`;
47- // }
48- // return `https://data.${BASELIME_DOMAIN}`;
40+ const { BASELIME_DOMAIN = "baselime.io" } = process . env ;
41+ const index = argv . findIndex ( ( val ) => val === "--endpoint" ) ;
42+ if ( index > - 1 ) {
43+ const endpoint = argv [ index + 1 ] ;
44+ const domain = getDomainWithoutSubdomain ( endpoint ) ;
45+ return `https://data.${ domain } ` ;
46+ }
47+ return `https://data.${ BASELIME_DOMAIN } ` ;
4948}
5049
5150export const client = axios . create ( {
You can’t perform that action at this time.
0 commit comments