mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
12 lines
336 B
TypeScript
12 lines
336 B
TypeScript
import { normalizeOptionalString } from "../shared/string-coerce.js";
|
|
|
|
export function resolveDaemonContainerContext(
|
|
env: Record<string, string | undefined> = process.env,
|
|
): string | null {
|
|
return (
|
|
normalizeOptionalString(env.OPENCLAW_CONTAINER_HINT) ||
|
|
normalizeOptionalString(env.OPENCLAW_CONTAINER) ||
|
|
null
|
|
);
|
|
}
|