Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Thanks for reaching out with the details — I understand you're hitting the ERR_PNPM_WORKSPACE_PKG_NOT_FOUND error when deploying your pnpm + Turborepo monorepo to Azure App Service. This is a fairly common issue with workspace dependencies
Azure App Service’s build system (Oryx) often only sees the folder you deploy. When it runs pnpm install, it can’t resolve workspace packages like @voice-ai/database@workspace:* because the full monorepo structure isn’t present.
Recommended Solution
The cleanest approach is to pre-build your app and use pnpm deploy to create a self-contained production folder. This resolves all workspace dependencies into regular ones and gives you a clean node_modules ready for deployment
Steps:
- In your CI pipeline (or locally), run.
pnpm install --frozen-lockfile pnpm run build --filter=@voice-ai/web # or turbo run build - Create a production-ready package
pnpm --filter=@voice-ai/web deploy --prod ./deploy-web - Zip the contents of the ./deploy-web folder (make sure there’s no extra top-level folder inside the zip) and deploy it using ZIP Deploy.
- In your App Service Configuration > Application settings, add:
- SCM_DO_BUILD_DURING_DEPLOYMENT = false
- WEBSITE_RUN_FROM_PACKAGE = 1 (recommended for better performance)
This method avoids most workspace and Oryx-related issues.
Reference:
https://learn.microsoft.com/en-us/azure/app-service/deploy-zip?tabs=cli
https://learn.microsoft.com/en-us/azure/app-service/configure-language-nodejs?pivots=platform-linux
https://learn.microsoft.com/en-us/azure/app-service/deploy-run-package
Kindly let us know if the above helps or you need further assistance on this issue.
Please "upvote" if the information helped you. This will help us and others in the community as well.