issues/27: prod baseline without task branch
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
export const API_BASE_URL =
|
||||
(typeof window !== 'undefined' && window.__ENV__?.API_BASE_URL) ||
|
||||
import.meta.env.VITE_API_BASE_URL ||
|
||||
'https://api.sovamed.ru'
|
||||
|
||||
export const apiUrl = (path) => {
|
||||
const base = API_BASE_URL.replace(/\/$/, '')
|
||||
const suffix = path.startsWith('/') ? path : `/${path}`
|
||||
return `${base}${suffix}`
|
||||
}
|
||||
Reference in New Issue
Block a user