message: Refactor(store): use  for server-side checking
diff: @@ -13,11 +13,8 @@ interface Arg {
  // Use inferred return type for making correctly Redux types
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
  const createStore = ({ initialState, url }: Arg = {}) => {
  - const history =
  - typeof window === "undefined"
  - ? createMemoryHistory({
  - initialEntries: [url || "/"],
  - })
  + const history = __SERVER__
  + ? createMemoryHistory({ initialEntries: [url || "/"] })
  : createBrowserHistory();
  const store = configureStore({
  preloadedState: initialState,
  