mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
Add event_data base.
This commit is contained in:
parent
72af76a417
commit
15c5cc065e
19 changed files with 395 additions and 45 deletions
|
|
@ -5,7 +5,7 @@ const isCI = require('is-ci');
|
|||
const pkg = require('../package.json');
|
||||
|
||||
const dest = path.resolve(__dirname, '../.next/cache/umami.json');
|
||||
const url = 'https://telemetry.umami.is/api/collect';
|
||||
const url = 'https://telemetry.umami.is/api/send';
|
||||
|
||||
async function sendTelemetry(action) {
|
||||
let json = {};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ if (endPoint) {
|
|||
|
||||
fs.writeFileSync(
|
||||
path.resolve(file),
|
||||
tracker.toString().replace(/"\/api\/collect"/g, `"${endPoint}"`),
|
||||
tracker.toString().replace(/"\/api\/send"/g, `"${endPoint}"`),
|
||||
);
|
||||
|
||||
console.log(`Updated tracker endpoint: ${endPoint}.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue