How to check in both server-side and client-side scripts if we are in preview mode or deployed version

随声附和 提交于 2019-12-11 14:39:19

问题


In AppMaker: Is there a way to make a difference between the app running in preview mode and the app running as a deployed version ?

Because my app is sending mails and is setting Apps scripts triggers but the config for those should be different in preview mode and deployed versions.

Thanks


回答1:


The preview is just another deployment. It has its own drive table. One option is to store your config in drive table.



来源:https://stackoverflow.com/questions/43778494/how-to-check-in-both-server-side-and-client-side-scripts-if-we-are-in-preview-mo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!