mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
added TRILIUM_SYNC_SERVER_HOST env. variable to prevent prod sync issues
This commit is contained in:
@@ -15,7 +15,9 @@ function get(name) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getSyncServerHost: () => get('syncServerHost'),
|
||||
// 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'),
|
||||
isSyncSetup: () => {
|
||||
const syncServerHost = get('syncServerHost');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user