refactor(services/sync_options): get rid of process.env query

this is now handled in config.ts already
This commit is contained in:
Panagiotis Papadopoulos 2025-01-24 00:03:50 +01:00
parent 8778ca5f6c
commit 3fc9a10ab6

View File

@ -17,7 +17,7 @@ function get(name: keyof typeof config.Sync) {
export default { export default {
// env variable is the easiest way to guarantee we won't overwrite prod data during development // env variable is the easiest way to guarantee we won't overwrite prod data during development
// after copying prod document/data directory // after copying prod document/data directory
getSyncServerHost: () => process.env.TRILIUM_SYNC_SERVER_HOST || get("syncServerHost"), getSyncServerHost: () => get("syncServerHost"),
isSyncSetup: () => { isSyncSetup: () => {
const syncServerHost = get("syncServerHost"); const syncServerHost = get("syncServerHost");