Use api subdomain

This commit is contained in:
Alan Hamlett
2024-02-07 09:25:32 +01:00
parent 2b3d2acc62
commit 72b76768dd

View File

@@ -56,7 +56,7 @@ const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Con
],
}),
new webpack.DefinePlugin({
['process.env.API_URL']: JSON.stringify('https://wakatime.com/api/v1'),
['process.env.API_URL']: JSON.stringify('https://api.wakatime.com/api/v1'),
['process.env.CURRENT_USER_API_URL']: JSON.stringify('/users/current'),
['process.env.HEARTBEAT_API_URL']: JSON.stringify('/users/current/heartbeats'),
['process.env.LOGOUT_USER_URL']: JSON.stringify('https://wakatime.com/logout'),