Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

241 B
Raw Blame
export function assetUrl(path: string): string {
  const base = (typeof __BASE__ !== "undefined" ? __BASE__ : "/").replace(
    /\/+$/,
    ""
  )
  const cleanPath = path.startsWith("/") ? path : `/${path}`
  return `${base}${cleanPath}`
}