diff --git a/app/createEmotionCache.ts b/app/createEmotionCache.ts index c3281be..1a943c0 100644 --- a/app/createEmotionCache.ts +++ b/app/createEmotionCache.ts @@ -1,10 +1,5 @@ import createCache from "@emotion/cache"; export default function createEmotionCache() { - // The browser throws when calling .default, but the server throws if we don't call .default - // Of course! - return typeof document === "undefined" - ? createCache.default({ key: "cha" }) - : // @ts-expect-error - createCache({ key: "cha" }); + return createCache({ key: "cha" }); }