mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	Hardcode marketplace URL
This commit is contained in:
		
							parent
							
								
									909e2be0ba
								
							
						
					
					
						commit
						53e12d69cd
					
				| @ -1,9 +1,9 @@ | ||||
| import axios from 'axios'; | ||||
| 
 | ||||
| const MARKETPLACE_API_URL = 'https://market-api.strapi.io'; | ||||
| 
 | ||||
| const fetchPlugins = async notify => { | ||||
|   const { data: response } = await axios.get( | ||||
|     `${process.env.STRAPI_ADMIN_MARKETPLACE_API_URL}/plugins` | ||||
|   ); | ||||
|   const { data: response } = await axios.get(`${MARKETPLACE_API_URL}/plugins`); | ||||
| 
 | ||||
|   // Only keep v4 plugins
 | ||||
|   const filteredResponse = { | ||||
|  | ||||
| @ -25,8 +25,6 @@ const getClientEnvironment = options => { | ||||
|         ADMIN_PATH: options.adminPath, | ||||
|         NODE_ENV: options.env || 'development', | ||||
|         STRAPI_ADMIN_BACKEND_URL: options.backend, | ||||
|         STRAPI_ADMIN_MARKETPLACE_API_URL: | ||||
|           process.env.STRAPI_ADMIN_MARKETPLACE_API_URL || 'https://market-api.strapi.io', | ||||
|       } | ||||
|     ); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Rémi de Juvigny
						Rémi de Juvigny