blob: 1c1bd83b25b4968b2055450aa4e147a6db3fbde6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
const ASTRO_TELEMETRY_ENDPOINT = `https://telemetry.astro.build/api/v1/record`;
import { fetch } from 'undici';
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' },
});
}
|