I'm working on the Angular SSR, using the Angular official sample project to do the testing.
Steps to build the Angular SSR project.
- npm run build:ssr
- it will auto generate the dist folder. Inside contain the browser and server folders.
- connect Web App Service ftp using the FileZilla.
- Upload the build files to wwwroot.
I had try different way to do the deployment
- Deploy browser and server folders to Azure wwwroot folder, but it doesn't work correctly, when open the url, it show the "You do not have permission to view this directory or page.".
- Deploy the content inside the browser folder. (It work, but direct url to 'www.something.com/dashboard', it will show the error "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." AND not sure is this correct way or not)
- Deploy the content inside the server folder. (It show "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.")
My Questions
- What is the correct way to deploy the Angular SSR to Azure Web App service?
Expected someone can listdown all the steps from build and deploy to Azure Web App service. It will be much more appreciated if screenshot or url to refer is provided.


There is also another way to deploy Angular Server-Side Rendering application to Azure using Azure Devops: