mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-30 17:37:26 +00:00 
			
		
		
		
	Let the developer disable the Studio if he wants
This commit is contained in:
		
							parent
							
								
									b7d55291cd
								
							
						
					
					
						commit
						d3a92fc8f8
					
				| @ -43,7 +43,7 @@ module.exports = function (strapi) { | ||||
|       const _self = this; | ||||
|       let firstConnectionAttempt = true; | ||||
| 
 | ||||
|       if (_.isPlainObject(strapi.config.studio) && !_.isEmpty(strapi.config.studio)) { | ||||
|       if (_.isPlainObject(strapi.config.studio) && !_.isEmpty(strapi.config.studio) && strapi.config.studio.enabled === true) { | ||||
|         const manager = io.Manager(strapi.config.studio.url, { | ||||
|           reconnectionDelay: 2000, | ||||
|           reconnectionDelayMax: 5000, | ||||
| @ -244,6 +244,8 @@ module.exports = function (strapi) { | ||||
|           strapi.log.warn(data.text); | ||||
|         }); | ||||
| 
 | ||||
|         cb(); | ||||
|       } else { | ||||
|         cb(); | ||||
|       } | ||||
|     }, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 loicsaintroch
						loicsaintroch