Return null when no runtime config

cgen-f9e0c111db284e4c82fa16a1a6f92d1f
This commit is contained in:
Builder.io 2025-10-14 01:57:59 +00:00
parent e45e1244b8
commit 8268593592

View file

@ -197,7 +197,7 @@ const getRuntimeConfig = () => {
const getAgentSrc = () => {
const cfg = getRuntimeConfig();
return cfg?.src ?? SKIP_AGENT_SRC;
return cfg?.src ?? (SKIP_AGENT_SRC ? SKIP_AGENT_SRC : null);
};
const getAgentId = () => {