Skip to content

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

web: always use prod urls for testing

Abdullah Attadbeabea6c560
diff --git a/apps/web/src/common/db.ts b/apps/web/src/common/db.ts
index f92828847..4616c3b51 100644
--- a/apps/web/src/common/db.ts
+++ b/apps/web/src/common/db.ts
@@ -29,6 +29,7 @@ import Config from "../utils/config";
import { FileStorage } from "../interfaces/fs";
function getHostUrl(hostUrl: keyof typeof hosts, defaultUrl: string) {
+ if (IS_TESTING) return defaultUrl;
const envValue = import.meta.env[`NN_${hostUrl}`];
return envValue || defaultUrl;
}