Send heartbeats to api servers subdomain instead of root domain

This commit is contained in:
Alan Hamlett
2023-11-21 11:27:51 +01:00
parent db2fbcac5d
commit 3a8e718857
3 changed files with 4 additions and 4 deletions

View File

@@ -308,9 +308,9 @@ export default function Options(): JSX.Element {
className="form-control" className="form-control"
value={state.apiUrl} value={state.apiUrl}
onChange={(e) => setState({ ...state, apiUrl: e.target.value })} onChange={(e) => setState({ ...state, apiUrl: e.target.value })}
placeholder="https://wakatime.com/api/v1" placeholder="https://api.wakatime.com/api/v1"
/> />
<span className="help-block">https://wakatime.com/api/v1</span> <span className="help-block">https://api.wakatime.com/api/v1</span>
</div> </div>
</div> </div>

View File

@@ -25,7 +25,7 @@ describe('wakatime config', () => {
}, },
}, },
"apiKey": "", "apiKey": "",
"apiUrl": "https://wakatime.com/api/v1", "apiUrl": "https://api.wakatime.com/api/v1",
"colors": { "colors": {
"allGood": "", "allGood": "",
"lightTheme": "white", "lightTheme": "white",

View File

@@ -120,7 +120,7 @@ const config: Config = {
apiKey: '', apiKey: '',
apiUrl: process.env.API_URL ?? 'https://wakatime.com/api/v1', apiUrl: process.env.API_URL ?? 'https://api.wakatime.com/api/v1',
colors: { colors: {
allGood: '', allGood: '',