You can use vm.$isServer method to know whether the current Vue instance is running on the server or client.
vm.$isServer
The usage would be as below,
const Vue = require('vue'); Vue.prototype.$isServer (OR) this.$isServer // With in component