Sign In Register

How can we help you today?

Start a new topic
Answered

Check if cloud code is in Preview/Live mode

Hi,

is it possible to check in Cloud Code if we are on Preview or Live mode? If yes - how?


Best Answer

Hi Marcin,


To check this via cloud code you can use:


Spark.getConfig().getStage();


If you have any more questions please let us know.


Vinnie


Answer

Hi Marcin,


To check this via cloud code you can use:


Spark.getConfig().getStage();


If you have any more questions please let us know.


Vinnie

Cool, thank you

 

Login to post a comment