We would like to detect if the code is running in sandbox as we need to communicate back to the server which urls to hit.
I can hard code a flag into each build if we are going to upload the build against sandbox. But I was wondering if there was a way to do it in code? That way I don't have to build a separate sandbox build instead I can just upload the same file that I use in non-sandbox.
Thanks!