mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
feat: add ability to change HOST url
This commit is contained in:
@@ -114,6 +114,12 @@ class Database {
|
|||||||
sync() {
|
sync() {
|
||||||
return this.syncer.start();
|
return this.syncer.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
host(host) {
|
||||||
|
if (process.env.NODE_ENV !== "production") {
|
||||||
|
HOST = host || HOST;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Database;
|
export default Database;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export const HOST =
|
export var HOST =
|
||||||
process.env.NODE_ENV === "production"
|
process.env.NODE_ENV === "production"
|
||||||
? "https://api.notesnook.com"
|
? "https://api.notesnook.com"
|
||||||
: "http://0.0.0.0:8000";
|
: "http://0.0.0.0:8000";
|
||||||
|
|||||||
Reference in New Issue
Block a user