Hey I m building multiple actors in one
Hey! I'm building multiple actors in one project. They all share a lot of logic. Is there a recommended way to develop and manage multiple actors in the same project? Right now everything seems centered around the config in
.actor
and it doesn't seem possible to configure this. Basically the following would solve my problem:
* Being able to have multiple actor configs in the same project
* Being able to specify entrypoint for each config or have multiple scripts in package.json to start a specific one when developing3 Replies
unwilling-turquoise•2y ago
You can create git repo and add folder(s) with actor(s) then reference each folder as actor git source.
quickest-silver•2y ago
Make the common code a library and import that on each actor
yappiest-sapphire•2y ago
The best is to have a monorepo, see https://docs.apify.com/platform/actors/development/deployment/source-types#actor-monorepos
Source types | Platform | Apify Documentation
Learn about Apify Actor source types and how to deploy an Actor from GitHub using CLI or Gist.