mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
9 lines
293 B
TypeScript
9 lines
293 B
TypeScript
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' },
|
|
});
|
|
}
|