Support for Vite --mode flag in azd package? #6045
-
|
Hi all |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey @mikkelh-SDU , thanks for reaching out. Unfortunately, azd doesn't currently support an easy way to control or override what is called during 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 WebApp, is to remove the Thanks for starting this discussion. We definitely need to improve the experience here in general. @rajeshkamal5050 @kristenwomack @wbreza |
Beta Was this translation helpful? Give feedback.
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.packagestarts by callingrestore, which callsnpm install. Then callsbuild, which callsnpm run build --if-exists. Finallypackagetakes the content from the/distfolder 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…