Skip to content
Discussion options

You must be logged in to vote

Hey @mikkelh-SDU , thanks for reaching out. Unfortunately, azd doesn't currently support an easy way to control or override what is called during azd package. package starts by calling restore, which calls npm install. Then calls build, which calls npm run build --if-exists. Finally package takes the content from the /dist folder and creates a .zip file which is used to deploy.
This is the flow for deploying to Azure WebApp. It works different if you use Azure Container Apps (docker).

There are some workarounds you can try, like switch to use Azure Container Apps where you can define a dockerfile with the appropiate instructions to build your app.

Another workaround, if you keep Azure Web…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mikkelh-SDU
Comment options

Answer selected by mikkelh-SDU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants