You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to deploy react app to Azure App Service Linux instance. It's using Microsoft Oryx in the deployment, and correctly executing "npm run build" to generate React production files and copy all the files to /home/site/wwwroot, however the web server is not using the "build" folder to serve content. How can I configure it to use the "build" folder? (default React production folder)
The text was updated successfully, but these errors were encountered:
Hi @robi-ng thanks for reporting, will you be please able to provide little more context? From your description my primary assumption is we need to configure the app so that it knows where is the "build" folder. Can you please verify if "build" folder resides in /home/site/wwwroot. Also it would be nice if you can share a sample repro app for this issue.
Hi @arroyc yes "build" folder resides in /home/site/wwwroot. I found the option on Azure portal, Configuration > General settings > Startup Command, to configure my startup command "npx serve -s build" so that it doesn't use the default "npm start" (meant for React development environment).
Hi,
I'm trying to deploy react app to Azure App Service Linux instance. It's using Microsoft Oryx in the deployment, and correctly executing "npm run build" to generate React production files and copy all the files to /home/site/wwwroot, however the web server is not using the "build" folder to serve content. How can I configure it to use the "build" folder? (default React production folder)
The text was updated successfully, but these errors were encountered: