blob: 4ce22738843bc6f137d1301ad7a373698ed54b95 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import { fetch } from 'undici';
const ASTRO_TELEMETRY_ENDPOINT = `https://telemetry.astro.build/api/v1/record`;
export function post(body: Record<string, any>): Promise<any> {
return fetch(ASTRO_TELEMETRY_ENDPOINT, {
method: 'POST',
body: JSON.stringify(body),
headers: { 'content-type': 'application/json' },
});
}
|