1👍
In your browser (also known as "the client-side"), console.log(process.server)
will always log false
.
Take a look at your server console in the terminal. There it should be logged too (with true
), unless you do the log in a "client-only" component/plugin or in a lifecycle hook like onMounted
.
Source:stackexchange.com