MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / getViteSessionApiKey

Function getViteSessionApiKey

scripts/dev-safe.mjs:644–651  ·  view source on GitHub ↗
(config, env = process.env)

Source from the content-addressed store, hash-verified

642}
643
644export function getViteSessionApiKey(config, env = process.env) {
645 return (
646 applySessionKeyPolicy({
647 host: env.VITE_BIND_HOST || "127.0.0.1",
648 sessionApiKey: config.sessionApiKey,
649 }).sessionApiKey || ""
650 );
651}
652
653/**
654 * Build safe dev configuration with dynamic port allocation.

Callers 2

dev-safe.test.tsFile · 0.90
mainFunction · 0.85

Calls 1

applySessionKeyPolicyFunction · 0.90

Tested by

no test coverage detected