I have a Vue SSR-application and for some components, I need to know whether they run on Node during server-side rendering or whether they run on the browser.
I've set the process env in the Webpack config like
process.env.VUE_ENV === 'server'
which works. But for various reasons, I need a detection independent of the built environment.
I'd like to check for the browser/node in the created() hook.
How would I do that?