mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 01:46:58 +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);
|
||||
|
||||
fs.writeFileSync(
|
||||
path.resolve(file),
|
||||
tracker.toString().replace(/"\/api\/send"/g, `"${endPoint}"`),
|
||||
);
|
||||
fs.writeFileSync(path.resolve(file), tracker.toString().replace(/\/api\/send/g, `"${endPoint}"`));
|
||||
|
||||
console.log(`Updated tracker endpoint: ${endPoint}.`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user