我想在NodeJS中使用Google Cloud Storage,但具体使用google-auth-library进行身份验证:我想将它托管在heroku上,所以我想将秘密保存在环境变量中,而不是文件中(因为我必须提交文件才能部署到heroku)。基本上是在auth库中建议的:https://github.com/googleapis/google-auth-library-nodejs#loading-credentials-from-environment-variables
但是我似乎不能将生成的客户端传递给Storage构造函数?
https://stackoverflow.com/questions/53728105
复制相似问题