-
Notifications
You must be signed in to change notification settings - Fork 45
Work with Monorepo mode #265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Jefiozie have you encountered such an issue before? |
hi @kamilmysliwiec, I've not seen this. I think the main reason that I've not seen this is that I've used the introduced @daniloraisi I think you could setup our your project by using the following steps:
Let us know if this worked out for you or if this is not working for your use case. |
@Jefiozie Thanks for your solution. Locally its work well but what is the proper way to publish function? |
Hi @pawelbart, did you already seen the blog here they use a extension in vscode. I don't know the exact commands for publishing them with the |
@Jefiozie it works, but there are some caveats:
I know that probably this is kind an edge case, but it's interesting to talk about. |
@Jefiozie Yes, I read the blog article and everything works for me for standard app (without monorepo structure). VSCode extension Azure Functions under the hood calls the following sequence: For monorepo I noticed that during deployment there are uploaded only files from I'm looking for the best way to send the entire project to Azure. Maybe it is possible to set project root path in I agree with @daniloraisi that this is an interesting topic. Thanks for your help. |
@Jefiozie I forked the project and modified some behaviours so it can work as expected. Can I do a Pull Request to integrate? |
@daniloraisi PRs are more than welcome! |
Some news @kamilmysliwiec? |
Just merged your PR and published as 0.6.0 |
I'm submitting a...
Current behavior
On Monorepo project, I can't create multiple functions based on my apps.
Expected behavior
Ability to use azure-http-func on Monorepo Mode projects to create multiple functions.
Minimal reproduction of the problem with instructions
Create a new NestJS project using CLI
nest new my-project
Create a Monorepo adding new app with
nest g app my-app
Add azure-http-func to the first app:
nest add @nestjs/azure-func-http --rootDir apps/my-project/src
.3.1. Select my-project project to add library to.
Try add azure-http-func to the second app:
nest add @nestjs/azure-func-http --rootDir apps/my-app/src
.4.1. Select my-app project to add library to.
We are presented the following error:
What is the motivation / use case for changing the behavior?
I want to create a Monorepo with multiple apps and split my API into separated Azure Functions.
Environment
The text was updated successfully, but these errors were encountered: