diff --git a/frontend/src/utils/index.ts b/frontend/src/utils/index.ts index be6ea6ec..e14e509b 100644 --- a/frontend/src/utils/index.ts +++ b/frontend/src/utils/index.ts @@ -4,6 +4,7 @@ import { isMobile as detectMobile } from "detect-touch-device" import { md5 } from "js-md5" import dayjs from "@/utils/dayjs" import type { OsTypesFull } from "@/types/common" +import _trim from "lodash/trim" // Transform File Instance in base64 string export function file2Base64(blob: Blob): Promise { @@ -111,5 +112,5 @@ export function price( } export function getBaseUrl() { - return import.meta.env.VITE_API_URL + return _trim(import.meta.env.VITE_API_URL, "/") }