Custom strapi plugin deployment strapi cloud

I am developing my second strapi project and want to host it using strapi cloud. In my project I have create a plugin (to extend the features of CMS). In the development everything is fine and in my own hosting also, because I am able to use my own commands (build plugin first, then strapi).

In strapi cloud not, has someone experiences with this scenario? In the documentation of strapi it is written, that strapi checks for plugins, but when I call strapi build it mentions that the dist folder is missing and I don’t want to commit the dist folder.

System Information
  • Strapi Version: 4.25.11
  • Operating System: Ubunto / Mac
  • Database: SqlLite (Dev) / Default (Prod)
  • Node Version: 20.16
  • NPM Version: 10.8.3
  • Yarn Version: n/a

1 Like

Found an answer here: