Error AtlasError Documentation and Resolution

Azure Static Web Apps Oryx build could not find a build script

Oryx could not find a 'build' or 'build:azure' script in the package configuration.

Azure Static Web Apps tried to build a Node app with Oryx, but the app location pointed at a package that does not expose a build or build:azure script.

Oryx could not find a 'build' or 'build:azure' script in the package configurationdeployment
Oryx could not find a 'build' or 'build:azure' script in the package configuration.
  • The Static Web Apps workflow is building the wrong directory, such as the monorepo root instead of the frontend app.
  • The package.json at the chosen app location does not define a build or build:azure script.
  • The SWA workflow app_location or app_build_command does not match the actual project structure.
  1. Set app_location to the actual frontend app directory so Oryx reads the correct package.json.
  2. Add a build or build:azure script to the package Oryx is building if one is genuinely missing.
  3. If the repository is a monorepo, verify that the workflow paths line up with the app and API folders.
Azure Static Web Apps: Build configuration
Azure Static Web Apps Oryx could not find build or build:azure script | Error Atlas