feat: hot reload
This commit is contained in:
@@ -11,6 +11,6 @@ export function getAdminRouterBase(pathname = window.location.pathname): string
|
||||
|
||||
export function getApiBaseURL(pathname = window.location.pathname): string {
|
||||
const tenantCode = getTenantCodeFromPath(pathname)
|
||||
return `/t/${tenantCode}/v1`
|
||||
const origin = import.meta.env.DEV ? 'http://localhost:8080' : ''
|
||||
return `${origin}/t/${tenantCode}/v1`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user