mirror of
				https://github.com/walkxcode/dashboard-icons.git
				synced 2025-10-31 08:47:57 +01:00 
			
		
		
		
	feat(opengraph): Enhance local build speed by limiting icon data retrieval
This commit is contained in:
		
				
					committed by
					
						 Bjorn Lammers
						Bjorn Lammers
					
				
			
			
				
	
			
			
			
						parent
						
							64c49274da
						
					
				
				
					commit
					0257342947
				
			| @@ -7,6 +7,14 @@ export const dynamic = "force-static" | ||||
|  | ||||
| export async function generateStaticParams() { | ||||
| 	const iconsData = await getAllIcons() | ||||
| 	if (process.env.CI_MODE === "false") { | ||||
| 		// This is meant to speed up the build process in local development | ||||
| 		return Object.keys(iconsData) | ||||
| 			.slice(0, 5) | ||||
| 			.map((icon) => ({ | ||||
| 				icon, | ||||
| 			})) | ||||
| 	} | ||||
| 	return Object.keys(iconsData).map((icon) => ({ | ||||
| 		icon, | ||||
| 	})) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user