Skip to content

Commit

Permalink
removed code
Browse files Browse the repository at this point in the history
  • Loading branch information
ApekshaBhosale committed Oct 11, 2024
1 parent e03522f commit cc4ac6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
34 changes: 0 additions & 34 deletions app/client/src/Heartbeat.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions app/client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { PageViewTiming } from "@newrelic/browser-agent/features/page_view_timin
import { PageViewEvent } from "@newrelic/browser-agent/features/page_view_event";
import { Agent } from "@newrelic/browser-agent/loaders/agent";
import { getCommonTelemetryAttributes } from "UITelemetry/generateTraces";
import Heartbeat from "Heartbeat";
const { newRelic } = getAppsmithConfigs();
const { enableNewRelic } = newRelic;

Expand Down Expand Up @@ -73,12 +72,8 @@ if (enableNewRelic) {
newRelicBrowserAgent.setCustomAttribute("appMode", appMode);
}

const { cloudHosting } = getAppsmithConfigs();

const shouldAutoFreeze = process.env.NODE_ENV === "development";

const isProduction = process.env.NODE_ENV === "production";

setAutoFreeze(shouldAutoFreeze);
runSagaMiddleware();

Expand All @@ -100,7 +95,6 @@ function App() {
<Sentry.ErrorBoundary fallback={"An error has occured"}>
<Provider store={store}>
<LayersContext.Provider value={Layers}>
{cloudHosting && isProduction && <Heartbeat />}
<ThemedAppWithProps />
</LayersContext.Provider>
</Provider>
Expand Down

0 comments on commit cc4ac6d

Please sign in to comment.