Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

419 B
Raw Blame
export const getCloudURL = (key: string) => {
    const origin = window.siyuan.config.cloudRegion === 0 ? "https://ld246.com" : "https://liuyun.io";
    if (!key || "" === key) {
        return origin;
    }
    return `${origin}/${key}`;
};

export const getIndexURL = (key: string) => {
    const lang = "zh-CN" === window.siyuan.config.lang ? "" : "/en";
    return "https://b3log.org/siyuan" + `${lang}/${key}`;
};