mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
fix update-tracker regex repalce
This commit is contained in:
parent
55f7d776e6
commit
53557f00b4
1 changed files with 1 additions and 4 deletions
|
|
@ -10,10 +10,7 @@ if (endPoint) {
|
||||||
|
|
||||||
const tracker = fs.readFileSync(file);
|
const tracker = fs.readFileSync(file);
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `"${endPoint}"`));
|
||||||
path.resolve(file),
|
|
||||||
tracker.toString().replace(/"\/api\/send"/g, `"${endPoint}"`),
|
|
||||||
);
|
|
||||||
|
|
||||||
console.log(`Updated tracker endpoint: ${endPoint}.`);
|
console.log(`Updated tracker endpoint: ${endPoint}.`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue