Reputation: 3869
I'm hosting Parse Server open source project. I have all my cloud function in cloud/main.js
. This file is getting a bit too big. How can I have multiple cloud files ?
Upvotes: 3
Views: 556
Reputation: 362610
You can export the other files as "modules" and then use require("..") to reference them from main.js
. This GitHub issue thread may help you.
Upvotes: 7