且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

env-cmd 错误无法在 gatsby 中找到 ./.env 文件?

更新时间:2023-08-21 20:15:28

您可以使用带有 -f 标志和 的自定义 .env 文件设置环境变量>env-cmd.使用此命令设置在自定义文件 './config/myvar.env'.

You can set environment variable using your own custom .env files with -f flag with env-cmd. Use this command to set env variables that are defined in custom file './config/myvar.env'.

env-cmd -f ./config/myvar.env

有关更多信息,请使用此链接

For more information use this link