Skip to content

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

fix: can't find variable HOST

thecodrr8aa38fdc397e
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 33909e377..7931fd098 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -86,7 +86,7 @@ class Database {
user = await this.user.get();
}
- this.evtSource = new NNEventSource(`${HOST}/events`, {
+ this.evtSource = new NNEventSource(`${Constants.HOST}/events`, {
headers: { Authorization: `Bearer ${user.accessToken}` },
});
@@ -117,7 +117,7 @@ class Database {
host(host) {
if (process.env.NODE_ENV !== "production") {
- Constants.HOST = host || HOST;
+ Constants.HOST = host || Constants.HOST;
}
}
}