NPM private git module on Heroku

后端 未结 10 1122
不知归路
不知归路 2020-12-07 13:05

I am trying to deploy my app to Heroku however I rely on using some private git repos as modules. I do this for code reuse between projects, e.g. I have a custom logger I us

10条回答
  •  爱一瞬间的悲伤
    2020-12-07 13:59

    It's a REALLY bad idea to have plain text passwords in your git repo, using an access token is better, but you will still want to be super careful.

    "my_module": "git+https://ACCESS_TOKEN:x-oauth-basic@github.com/me/my_module.git"
    

提交回复
热议问题