Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(services/sync_options): get rid of process.env query
Panagiotis Papadopoulos3fc9a10ab64d
diff --git a/src/services/sync_options.ts b/src/services/sync_options.tsindex 5bbb395f38..ade405f46c 100644--- a/src/services/sync_options.ts+++ b/src/services/sync_options.ts@@ -17,7 +17,7 @@ function get(name: keyof typeof config.Sync) {export default {// env variable is the easiest way to guarantee we won't overwrite prod data during development// after copying prod document/data directory- getSyncServerHost: () => process.env.TRILIUM_SYNC_SERVER_HOST || get("syncServerHost"),+ getSyncServerHost: () => get("syncServerHost"),isSyncSetup: () => {const syncServerHost = get("syncServerHost");