Custom Config Flag on Marketplace Install

Hello,

We have an app that is mostly Typescript V1 functions and function-backed actions. So far we have created our app in “simulation/demo” mode but we now are working with our first customer to deploy our app in “operational” mode.

I would like to have a user-configurable “flag” (“Working Mode”: [“Simulation”, “Demo”, “Operational”]) on marketplace install that lets me set the working mode. I would like to do a couple things with this flag:

  • Control which Automations are installed/enabled
  • Read the flag from my code repo to adjust function business logic (<< most important)
  • Control the content of certain static data sets

The nature of this flag can be anything (a file in the project folder, the contents of that file, something in the ontology, etc.). I just need it to achieve the goals I listed above.

Thanks!

Hi @Bougs,

One best way to do this at the moment would be to create a source with secrets, and use those secrets to store the values and then fetch them from your code.

We’re also looking into providing more first-class runtime configuration points for pro-code functions but I do not have a timeline to share yet.