You can use
vm.$isServer method to know whether the current Vue instance is running on the server or client.
The usage would be as below:
const Vue = require('vue');
this.$isServer // With in component
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.