A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: always use prod urls for testing
Abdullah Attadbeabea6c560
diff --git a/apps/web/src/common/db.ts b/apps/web/src/common/db.tsindex 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;}