Deploying multiple versions of Angular app to Azure App Service

前端 未结 3 762
萌比男神i
萌比男神i 2021-02-08 13:31

I have an Angular application which I can deploy to Azure App Service without any issues.

First I compile my application using the following command:

ng          


        
3条回答
  •  遥遥无期
    2021-02-08 14:25

    We had also the problem for our i18n multi-languages website created by angular-cli.

    What you need:

    1) ensure that you have only 1 web.config in the root folder (not under ./fr or ./en)

    2) ensure that your fr/index.html has the right base tag

    
    

    3) ensure that your en/index.html has the right base tag

    
    

    4) the content of your unique web.config needs to include the following code:

    
    
      
          
            
                
                    
                    
                        
                        
                        
                    
                    
                
                
                    
                    
                        
                        
                        
                    
                    
                
            
        
      
    
    

    The "appendQueryString" is needed if you have some query parameters with your URL.

提交回复
热议问题