Ambroise Collon
Ambroise Collon

Reputation: 3869

Multiple Cloud files on Parse Server

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

Answers (1)

Carol Skelly
Carol Skelly

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

Related Questions