feat(memoh): unify embedded runtime serving and release binaries

This commit is contained in:
Ran
2026-02-24 19:39:01 +08:00
parent d6914f99ab
commit ffda558d24
18 changed files with 1564 additions and 4 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ import { errorMiddleware } from './middlewares/error'
import { loadConfig, getBaseUrl as getBaseUrlByConfig } from '@memoh/config'
import { AgentAuthContext, AuthFetcher } from '@memoh/agent'
const config = loadConfig('../config.toml')
const configuredPath = process.env.MEMOH_CONFIG_PATH?.trim() || process.env.CONFIG_PATH?.trim()
const configPath = configuredPath && configuredPath.length > 0 ? configuredPath : '../config.toml'
const config = loadConfig(configPath)
export const getBaseUrl = () => {
return getBaseUrlByConfig(config)