Some times ago I asked this: How to check in both server-side and client-side scripts if we are in preview mode or deployed version
Because I wanted in my code to have different logic whether it is the preview mode or not.
The answer was "preview mode is just another deployment and each deployment has its own Drive table, store some env variables there". That was true and made the trick.
Problem: Drive tables don't exist anymore.
I have not been working with AppMaker the past months so maybe I have missed new features:
how can I set environment variables per deployment ? (so I can make a difference between my prod deployment and my pre-prod deployment)
is there a way to get the current deployment name from the code ?
Thanks for your answers
Deployment unique environment variables can be stored using the Google script properties service.