selfservice/env_fix.js
Philipp Dormann 4a11fef0e0
All checks were successful
ci/woodpecker/push/build Pipeline was successful
chore(deps): update all
2024-12-02 10:40:06 +01:00

7 lines
295 B
JavaScript

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);
}