mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fixed build.
This commit is contained in:
parent
13755417b1
commit
ec7d5bdfe2
2 changed files with 3 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import 'dotenv/config';
|
||||
import { sendTelemetry } from './telemetry';
|
||||
import { sendTelemetry } from './telemetry.mjs';
|
||||
|
||||
async function run() {
|
||||
if (!process.env.DISABLE_TELEMETRY) {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ import isCI from 'is-ci';
|
|||
import { createRequire } from 'module';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const pkg = require('./package.json');
|
||||
const pkg = require('../package.json');
|
||||
|
||||
const url = 'https://api.umami.is/v1/telemetry';
|
||||
|
||||
async function sendTelemetry(type) {
|
||||
export async function sendTelemetry(type) {
|
||||
const { default: isDocker } = await import('is-docker');
|
||||
const { default: fetch } = await import('node-fetch');
|
||||
|
||||
|
|
@ -37,7 +37,3 @@ async function sendTelemetry(type) {
|
|||
// Ignore
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sendTelemetry,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue