Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix isProduction always returns false

Abdullah Atta1a05acbe9acc
diff --git a/packages/core/src/utils/constants.ts b/packages/core/src/utils/constants.ts
index 8eb0bffb0..5092da87b 100644
--- a/packages/core/src/utils/constants.ts
+++ b/packages/core/src/utils/constants.ts
@@ -26,7 +26,6 @@ export function isServerCompatible(version: number) {
}
function isProduction() {
- return false;
return (
process.env.NODE_ENV === "production" || process.env.NODE_ENV === "test"
);