0๐
I managed to get arround this myself by implementing a middleware in the page file itself like so. In case anyone runs into the same issue.
Solution
middleware({ store, redirect }) { // If the user is not authenticated if (store.state.user.user === undefined) { return redirect("/login"); } },
- [Vuejs]-How to keep vuepress source files in custom directory?
- [Vuejs]-Vue in Django app โ How to setup Vue instance from static js files
Source:stackexchange.com