From 3fc9a10ab64da3e5eb630208de374840068284fc Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 24 Jan 2025 00:03:50 +0100 Subject: [PATCH] refactor(services/sync_options): get rid of process.env query this is now handled in config.ts already --- src/services/sync_options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/sync_options.ts b/src/services/sync_options.ts index 5bbb395f3..ade405f46 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");