mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
refactor(services/sync_options): get rid of process.env query
this is now handled in config.ts already
This commit is contained in:
parent
8778ca5f6c
commit
3fc9a10ab6
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user