fix loading default config

without this change, if the user doesn't have a valid config on disk, they just get a white screen on startup due to `nconf.required` throwing an exception.
This commit is contained in:
Andrew Rodland 2024-02-10 23:13:53 -05:00 committed by GitHub
parent fd63cc7fa7
commit 7099d2e379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,7 +101,7 @@ const defaultConfig = {
},
};
nconf.defaults(defaultConfig.local);
nconf.defaults(defaultConfig);
nconf.required(["local:host", "local:port"]);
export const settingsStore = reactive(defaultConfig);