Open rajat1saxena opened 1 year ago
Hi @rajat1saxena, In context to nextjs, we're using api build to install production dependencies only, as the nextjs app is already built as part of the app build.
So to force using yarn during api build , can you try passing api_build_command argument and use it to only do something like yarn install --production.
Sorry for the inconvenience, and please let me know if it helps.
Describe the bug
Oryx is not picking up Yarn from package.json while building API.
To Reproduce Steps to reproduce the behavior:
GitHub Action Workflow Pipeline: https://github.com/codelitdev/courselit/blob/workspace-based-resolution/.github/workflows/azure-static-web-apps-gray-meadow-012ce1110.yml GitHub Action run result: https://github.com/codelitdev/courselit/actions/runs/3952346891/jobs/6767308358
Expected behavior The API should use Yarn instead of NPM.