1import { type envConfType, setEnvConf } from "../../serverF/envConfF.mts"3export const doSetProcessEnv = (4 {envLocal, envConf} : {envLocal: envConfType, envConf: envConfType}5) => {6 // Only mirror to process.env.ENVCONFS when writing the process-wide baseline (no7 // active envConfCtx); a scoped sub-deploy must not clobber the baseline read by later jobs.8 if (setEnvConf({...envLocal, ...envConf})) {9 process.env.ENVCONFS = JSON.stringify(envConf)10 }11 Object.assign(process.env, envLocal)12}