Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Add support for Nx monorepo

Open thefinitemonkey opened this issue 4 years ago • 2 comments

Feature Request

Deploying with Azure static apps is a very attractive opportunity for us given our Angular / Node stack. However, we build and maintain our code in a Nx monorepo (https://nx.dev). So the files to be hosted are currently supported by Oryx, but the build path with Nx is somewhat different.

Specifically, support for Nx would:

  • Treat app_location as project name for "nx build" command
  • Treat api_location as project name for "nx build" command (as the api also needs to be built)
  • Not use output_location, instead reading output locations for app and api from the outputPath property of each project in the angular.json (or other appropriate file for React, etc.)

thefinitemonkey avatar May 21 '21 16:05 thefinitemonkey

Yes support for this would be really nice!

ghost avatar May 02 '22 16:05 ghost

@escreengithub , looks like you edited it out of your comment, but, if it's helpful, I am working around this by explicitly building in a separate step from the static web app publish. then, just skip_app_build. so, I'm bypassing oryx altogether.

see here: https://github.com/collinbarrett/FilterLists/blob/vNext/.github/workflows/azure-static-web-apps-lemon-stone-084516c10.yml

collinbarrett avatar May 02 '22 17:05 collinbarrett

We're closing this issue due to its age. If this is still impacting you please open a new issue and simply link back to this one.

simonjj avatar Jan 11 '24 01:01 simonjj