Use a separate config file in development mode

This commit is contained in:
Jonatan Heyman 2023-07-04 12:16:26 +02:00
parent 2d3a20e4cd
commit 182c6f295e

View File

@ -1,5 +1,7 @@
import Store from "electron-store"
const isDev = !!process.env.VITE_DEV_SERVER_URL
const schema = {
additionalProperties: false,
@ -47,4 +49,4 @@ const defaults = {
theme: "system",
}
export default new Store({schema, defaults})
export default new Store({schema, defaults, name: isDev ? "config-dev" : "config"})