Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: fix resource url
Stevene35225ff24bd
diff --git a/web/src/utils/resource.ts b/web/src/utils/resource.tsindex 2997b4ec7..32bcbf8da 100644--- a/web/src/utils/resource.ts+++ b/web/src/utils/resource.ts@@ -1,11 +1,11 @@import { Resource } from "@/types/proto/api/v2/resource_service";-export const getResourceUrl = (resource: Resource, withOrigin = true) => {+export const getResourceUrl = (resource: Resource) => {if (resource.externalLink) {return resource.externalLink;}- return `${withOrigin ? window.location.origin : ""}/o/r/${resource.name}`;+ return `${import.meta.env.VITE_API_BASE_URL || window.location.origin}/o/r/${resource.name}`;};export const getResourceType = (resource: Resource) => {