Meteor: are code inside Meteor.isServer block readable from client?

meteor

Solution

I would advise against using that instead put your stuff in folders as advised on the unofficial meteor faq

Even if you use `if (Meteor.isServer) {...}` this block will still be sent down to the client if you don't use the folder structure above i.e putting it in `/server`. But it will ignore all the code inside it.

On the server side code you would place code you only want to run on the server, i.e Publish functions, and data that would be more sensitive & the user shouldn't have access to.

Problem

I am confused as to when you would use the isServer block to put stuff in. obviously, database calls and etc. Does this show up in the client browser?

Original source