import { existsSync, writeFileSync, readFileSync } from "node:fs"; if (existsSync("./dist/index.html")) { const content = readFileSync("./dist/index.html", { encoding: "utf8" }); const newcontent = content.replace(`"/env.js"`, `"./env.js"`); writeFileSync("./dist/index.html", newcontent); }