Respect environment when setting app key.