mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 09:57:00 +01:00
fix update-tracker regex repalce
This commit is contained in:
parent
55f7d776e6
commit
53557f00b4
@ -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…
Reference in New Issue
Block a user