![](/img/trans.png)
[英]Azure Function app : Microsoft.Azure.WebJobs.EventHubs: Value cannot be null. (Parameter 'receiverConnectionString')
[英]Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException: Cannot find module 'dotenv'
Azure Static Web 具有集成 API 的應用程序 (SWA),其index.js具有
require('dotenv').config({ path: './environment/misc.env'});
本地運行Azure Static Web Apps emulator
完美。 合並到 GitHub master
分支觸發 Azure CI/CD 部署到 Azure,測試得到
堆棧:錯誤:找不到模塊“dotenv”
dotenv
在 SWA 的根目錄中package.json
"dependencies":
{
...
"dotenv": "^16.0.0"
}
GitHub項目,行動所有工作都很好
SWA 環境設置 前端
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.