mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: remove meticulous from CI (#14369)
This commit is contained in:
+1
-26
@@ -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 />);
|
||||
|
||||
Reference in New Issue
Block a user