Client - fix api URL
This commit is contained in:
parent
7157f53298
commit
ebf15c46e8
@ -10,7 +10,7 @@ import { IWorkoutsState } from '@/store/modules/workouts/types'
|
|||||||
|
|
||||||
export const getApiUrl = (): string => {
|
export const getApiUrl = (): string => {
|
||||||
return process.env.NODE_ENV === 'production'
|
return process.env.NODE_ENV === 'production'
|
||||||
? '/api'
|
? '/api/'
|
||||||
: `${process.env.VUE_APP_API_URL}/api/`
|
: `${process.env.VUE_APP_API_URL}/api/`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user