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