Properly add an environment variable to a string in Node

前端 未结 0 1067
花落未央
花落未央 2021-01-14 03:23

I have the following variable defined in a file:

const BASE_URL = `https://myurl?key=${process.env.MY_API_KEY}`

Later, in a method, I\'ve add

相关标签:
回答
  • 消灭零回复
提交回复
热议问题