Skip to content

Commit

Permalink
Send heartbeats to api servers subdomain instead of root domain
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Nov 21, 2023
1 parent db2fbca commit 3a8e718
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
/>
<span className="help-block">https://wakatime.com/api/v1</span>
<span className="help-block">https://api.wakatime.com/api/v1</span>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/config/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit 3a8e718

Please sign in to comment.