File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11web :$PORT 
2- release :
2+ release :npm install fastly prettyjson  &&   node fastly-purge.js
Original file line number Diff line number Diff line change 22/* eslint-disable no-console */ 
33const  ServiceKey  =  process . env [ 'FASTLY_SERVICE_ID' ] ; 
44const  FastlyPurgeKey  =  process . env [ 'FASTLY_PURGE_KEY' ] ; 
5- const  Fastly  =  require ( './node_modules/ fastly' ) ; 
5+ const  Fastly  =  require ( 'fastly' ) ; 
66
77
88if  ( ! ServiceKey  ||  ! FastlyPurgeKey )  { 
@@ -13,7 +13,7 @@ if (!ServiceKey || !FastlyPurgeKey) {
1313const  fastly  =  Fastly ( FastlyPurgeKey ) ; 
1414
1515fastly . purgeAll ( ServiceKey ,   ( err ,  fastlyResponseBody )  =>  { 
16-   const  prettyjson  =  require ( './node_modules/ prettyjson' ) ; 
16+   const  prettyjson  =  require ( 'prettyjson' ) ; 
1717  if  ( err )  { 
1818    return  console . log ( prettyjson . render ( err ,  { } ) ) ; 
1919  } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments