diff --git a/app/client/public/index.html b/app/client/public/index.html index 9c8745121b..33e8c953fd 100755 --- a/app/client/public/index.html +++ b/app/client/public/index.html @@ -15,6 +15,37 @@ transition: all ease-in 0.3s; } + <%= (function () { // This code emits additional `link rel="preload"` tags for edit.html and view.html. @@ -49,35 +80,6 @@ })() %> - + \ No newline at end of file diff --git a/app/client/src/index.tsx b/app/client/src/index.tsx index 73efa360d6..305e83f63d 100755 --- a/app/client/src/index.tsx +++ b/app/client/src/index.tsx @@ -19,9 +19,10 @@ import GlobalStyles from "globalStyles"; // enable autofreeze only in development import { setAutoFreeze } from "immer"; import AppErrorBoundary from "./AppErrorBoundry"; -const shouldAutoFreeze = process.env.NODE_ENV === "development"; -setAutoFreeze(shouldAutoFreeze); +const shouldAutoFreeze = process.env.NODE_ENV === "development"; + +setAutoFreeze(shouldAutoFreeze); runSagaMiddleware(); appInitializer();