For this PR, I'm attempting to set the environment variable during workflow and I've removed the special handling and separate Angular environment member environment.useCIAppCheckDebugToken. If environment.useAppCheckDebugToken is set to true before compilation, then the JavaScript runtime should have access to this environment variable through the global object accessor globalThis.
Broke down long function setupAppCheck() and setup fail-safe for production mode in appCheckDebugTokenFailSafe.
For this PR, I'm attempting to set the environment variable during workflow and I've removed the special handling and separate Angular environment member environment.useCIAppCheckDebugToken. If environment.useAppCheckDebugToken is set to true before compilation, then the JavaScript runtime should have access to this environment variable through the global object accessor globalThis.
Broke down long function setupAppCheck() and setup fail-safe for production mode in appCheckDebugTokenFailSafe.