Last night

This commit is contained in:
Andras Schmelczer 2026-02-08 10:21:37 +00:00
parent 2906b01734
commit 42ee2d4c51
47 changed files with 848 additions and 478 deletions

View file

@ -1,5 +1,5 @@
const DOMAIN = 'narrowit.schmelczer.dev';
const ENDPOINT = '/status';
const ENDPOINT = 'https://stats.schmelczer.dev/status';
const IS_DEV = process.env.NODE_ENV !== 'production';
type EventOptions = {
@ -32,8 +32,9 @@ function sendEvent(name: string, options?: EventOptions) {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload),
credentials: 'omit',
keepalive: true,
}).catch(() => {});
}).catch(() => { });
}
}