How to use environment variables in package.json

后端 未结 6 1793
有刺的猬
有刺的猬 2020-12-30 19:01

Because we don\'t want sensitive data in the project code, including the package.json file, using environment variables would be a logical choice in my opinion.

Exam

6条回答
  •  情深已故
    2020-12-30 19:29

    No it isn't possible as npm does not treat any string values as any kind of templates.

    It may be better to just use git+ssh (if your provider supports it) with an ssh agent.

提交回复
热议问题