Azure Static Web App (SWA) with integrated API whose index.js has
require('dotenv').config({ path: './environment/misc.env'});
Local-run Azure Static Web Apps emulator
perfect. Merged into GitHub master
branch triggers Azure CI/CD deploy into Azure, test got
Stack: Error: Cannot find module 'dotenv'
dotenv
is in SWA's root package.json
"dependencies":
{
...
"dotenv": "^16.0.0"
}
GitHub project, Actions all jobs are good