fix ai gen

This commit is contained in:
Ishaan Dey
2024-05-14 00:18:27 -07:00
parent ce5e55bdf6
commit f3e9f81722
5 changed files with 10 additions and 19 deletions

View File

@ -75,6 +75,7 @@ const readAndParseKubeYaml = (
if (!process.env.CF_AI_KEY) {
throw new Error("CF_AI_KEY is not defined");
}
const regexEnv = new RegExp(`<CF_AI_KEY>`, "g");
docString = docString.replace(regexEnv, process.env.CF_AI_KEY);