Azure App service not working with custom routing in React-Redux web app - need wildcard virtual directories?

前端 未结 2 1275
忘了有多久
忘了有多久 2021-01-13 07:35

I have custom routes like follows:

// @flow

import React, { PureComponent } from \'react\';
import { Switch, Redirect } from \'react-router-dom\';
import {          


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-13 08:12

    If you have your repo connected to the Azure Web App, then you can place this web.config file in the /public folder of a create-react-app project.

    
    
        
    
            
    
            
    
            
            
                
                    
                    
                    
                    
                
            
    
            
                
                    
                        
                        
                            
                            
                            
                        
                        
                    
                
            
    
        
    
    

提交回复
热议问题