From 367fb7b27415b62f3c52b68d944f123db3a79782 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 1 Jan 2021 12:56:06 -0700 Subject: [PATCH] Only use vuex-persist in production so that we don't have it saving in development --- web/src/store/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/store/index.js b/web/src/store/index.js index 41e1885..a6a1429 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -83,7 +83,8 @@ export default new Vuex.Store({ }, modules: { }, - plugins: [ - new VuexPersistence().plugin, - ] -}) + plugins: + process.env.NODE_ENV === `production` + ? [new VuexPersistence({ key: `ghost-writer-save` }).plugin] + : [] +}); \ No newline at end of file