Skip to content

Commit

Permalink
fix: getBaseUrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
Linko91 committed Jun 7, 2024
1 parent 8526e4c commit 8d34a4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
Expand Down Expand Up @@ -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, "/")
}

0 comments on commit 8d34a4e

Please sign in to comment.