Skip to content

Commit 8696c25

Browse files
committed
feat: add plugin to clear local storage on version update
1 parent c520e63 commit 8696c25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nuxt.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import colors from 'vuetify/es5/util/colors'
22

33
export default {
4+
env: {
5+
// changing this will clear localstorage by a plugin
6+
APP_VERSION: 'v0.0.7-alpha',
7+
},
48
telemetry: false,
59
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
610
ssr: false,
@@ -25,7 +29,7 @@ export default {
2529
css: ['@/assets/css/main.css'],
2630

2731
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
28-
plugins: [],
32+
plugins: [{ src: '@/plugins/clearLocalStorageOnUpdate.js', mode: 'client' }],
2933

3034
// Auto import components: https://go.nuxtjs.dev/config-components
3135
components: true,

0 commit comments

Comments
 (0)