File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public static IResourceBuilder<NodeAppResource> AddViteApp(this IDistributedAppl
3838        } ; 
3939
4040        _  =  useHttps 
41-             ?  resource . WithHttpsEndpoint ( env :  "PORT" ) . WithExternalHttpEndpoints ( ) 
42-             :  resource . WithHttpEndpoint ( env :  "PORT" ) . WithExternalHttpEndpoints ( ) ; 
41+             ?  resource . WithHttpsEndpoint ( env :  "PORT" ) 
42+             :  resource . WithHttpEndpoint ( env :  "PORT" ) ; 
4343
4444        return  resource . WithArgs ( ctx => 
4545        { 
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ public void ViteAppHasExposedHttpsEndpoints()
139139
140140
141141    [ Fact ] 
142-     public  void  ViteAppHasExposedExternalHttpEndpoints ( ) 
142+     public  void  ViteAppDoesNotExposeExternalHttpEndpointsByDefault ( ) 
143143    { 
144144        var  builder  =  DistributedApplication . CreateBuilder ( ) ; 
145145
@@ -155,7 +155,7 @@ public void ViteAppHasExposedExternalHttpEndpoints()
155155
156156        Assert . True ( resource . TryGetAnnotationsOfType < EndpointAnnotation > ( out  var  endpoints ) ) ; 
157157
158-         Assert . Contains ( endpoints ,  e =>  e . IsExternal ) ; 
158+         Assert . DoesNotContain ( endpoints ,  e =>  e . IsExternal ) ; 
159159    } 
160160
161161    [ Fact ] 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments