'Can't deploy React app in Production mode to Azure app service via VS Code
I have react app, which runs on Azure. I am using Visual Studio Code with App Service extension for its deployment to production and it works well. Unfortunately, I see (in browser React Development tools), that the react app deployed via this extension is deployed in development mode, although during the build it clearly says Creating an optimized production build...
I obviously need to deploy it in production mode.
I tried to search the internet and I only found the same issue here, which is without solution.
Does anyone knows any workaround, so I don't have to setup some pipeline from Git? Deployment via VSC is so easy, so I would really like to deploy with it...
Thanks in advance!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|