chore: remove meticulous from CI (#14369)

This commit is contained in:
Jon Ayers
2024-08-20 14:13:13 -04:00
committed by GitHub
parent 03f05e25f6
commit b6d35edebd
3 changed files with 2 additions and 83 deletions
+1 -26
View File
@@ -1,4 +1,3 @@
import { tryLoadAndStartRecorder } from "@alwaysmeticulous/recorder-loader";
import { createRoot } from "react-dom/client";
import { App } from "./App";
@@ -15,28 +14,4 @@ if (element === null) {
}
const root = createRoot(element);
async function startApp() {
// Record all sessions on localhost, staging stacks and preview URLs
if (isInternal()) {
// Start the Meticulous recorder before you initialise your app.
// Note: all errors are caught and logged, so no need to surround with try/catch
await tryLoadAndStartRecorder({
projectId: "Y4uHy1qs0B660xxUdrkLPkazUMPr6OuTqYEnShaR",
isProduction: false,
});
}
root.render(<App />);
}
function isInternal() {
return (
process.env.NODE_ENV === "development" &&
(window.location.hostname.indexOf("localhost") > -1 ||
window.location.hostname.indexOf("127.0.0.1") > -1)
);
}
startApp().catch((error) => {
console.error(error);
});
root.render(<App />);