diff --git a/src/components/Options.tsx b/src/components/Options.tsx index ec3c0312..e2d7e6fb 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 7987e4b0..7d357eb5 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 1f24c91a..f10f19c5 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: '',