chore: configure base url (#179)
* chore: set base api url * chore: change config varibales names * chore: rename env var * chore: set base url to match wakatime cli usage
This commit is contained in:
committed by
GitHub
parent
1e9e233066
commit
c2ead5149d
@@ -55,17 +55,12 @@ const getConfigByBrowser = (isProd: boolean, browser: BrowserTypes): webpack.Con
|
||||
],
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
['process.env.CURRENT_USER_API_URL']: JSON.stringify(
|
||||
'https://wakatime.com/api/v1/users/current',
|
||||
),
|
||||
['process.env.HEART_BEAT_API_URL']: JSON.stringify(
|
||||
'https://wakatime.com/api/v1/users/current/heartbeats',
|
||||
),
|
||||
['process.env.API_URL']: JSON.stringify('https://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'),
|
||||
['process.env.NODE_ENV']: JSON.stringify(isProd ? 'production' : 'development'),
|
||||
['process.env.SUMMARIES_API_URL']: JSON.stringify(
|
||||
'https://wakatime.com/api/v1/users/current/summaries',
|
||||
),
|
||||
['process.env.SUMMARIES_API_URL']: JSON.stringify('/users/current/summaries'),
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user