Start a new topic

Environment api value

It would be nice to know whether a xap is being run in either the stage or local studio to make it easier to connect to a different database.

so we could do (in either python or javascript)


if (this.api.env === 'studio')

   db = 'dev';

else if (this.api.env === 'stage')

   db = 'prod';


or something similar?

Login to post a comment