Reputation: 1494
Meteor documentation states
Meteor ensures that any file in any directory named server/ will only be available on the server
but what about subdirectories (and their corresponding files) in the server folder? Are they only accessible via the server too? e.g...
server/
server.js
myfolder/
fileIOnlyWantToBeAccessibleByTheServer.js
anotherFileIOnlyWantToBeAccessibleByTheServer.js
client/
client.js
common/
common.js
Upvotes: 0
Views: 45
Reputation: 2386
sub-directories of server are not sent to the client. from here: https://guide.meteor.com/structure.html#special-directories
Any directory named server/ is not loaded on the client.
thought it doesn't explicitly spell out sub-directories, i think it's implied from that statement. also, from experience, i can say the subdirs are not sent.
Upvotes: 1