Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
11
node_modules/@astrojs/telemetry/dist/post.js
generated
vendored
Normal file
11
node_modules/@astrojs/telemetry/dist/post.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const ASTRO_TELEMETRY_ENDPOINT = `https://telemetry.astro.build/api/v1/record`;
|
||||
function post(body) {
|
||||
return fetch(ASTRO_TELEMETRY_ENDPOINT, {
|
||||
method: "POST",
|
||||
body: JSON.stringify(body),
|
||||
headers: { "content-type": "application/json" }
|
||||
});
|
||||
}
|
||||
export {
|
||||
post
|
||||
};
|
Reference in New Issue
Block a user