Typescript with NextJS: How to crash build when environment variables are of the wrong type

后端 未结 0 1225
误落风尘
误落风尘 2021-01-30 05:11

How can I crash the build when environment variables are of the wrong type. For example, I expected TEST variable is a string and in .env file I have TEST=123

PS. I have

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