BjarneB
Windmill14mo ago
4 replies
Bjarne

How to differentiate between preview and production runs?

As the title says: how do I know inside of my script if it is running in preview or production mode?
I noticed that I might be able to use env variables for this (in the settings - runtime menu), and this works if you are just running the script standalone. But, when I wish to run a flow in preview mode, the scripts inside of the flow do not seem to realize they are running in preview mode, and the production environment variables are still used.
Was this page helpful?