From 3a8e718857e3096ce928481a8ab21a1e5e55170a Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 21 Nov 2023 11:27:51 +0100 Subject: [PATCH] Send heartbeats to api servers subdomain instead of root domain --- src/components/Options.tsx | 4 ++-- src/config/config.test.ts | 2 +- src/config/config.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Options.tsx b/src/components/Options.tsx index ec3c031..e2d7e6f 100644 --- a/src/components/Options.tsx +++ b/src/components/Options.tsx @@ -308,9 +308,9 @@ export default function Options(): JSX.Element { className="form-control" value={state.apiUrl} onChange={(e) => setState({ ...state, apiUrl: e.target.value })} - placeholder="https://wakatime.com/api/v1" + placeholder="https://api.wakatime.com/api/v1" /> - https://wakatime.com/api/v1 + https://api.wakatime.com/api/v1 diff --git a/src/config/config.test.ts b/src/config/config.test.ts index 7987e4b..7d357eb 100644 --- a/src/config/config.test.ts +++ b/src/config/config.test.ts @@ -25,7 +25,7 @@ describe('wakatime config', () => { }, }, "apiKey": "", - "apiUrl": "https://wakatime.com/api/v1", + "apiUrl": "https://api.wakatime.com/api/v1", "colors": { "allGood": "", "lightTheme": "white", diff --git a/src/config/config.ts b/src/config/config.ts index 1f24c91..f10f19c 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -120,7 +120,7 @@ const config: Config = { apiKey: '', - apiUrl: process.env.API_URL ?? 'https://wakatime.com/api/v1', + apiUrl: process.env.API_URL ?? 'https://api.wakatime.com/api/v1', colors: { allGood: '',