| 
						
						
							
								
							
						
						
					 | 
					@ -50,66 +50,66 @@ export class FrontendMiddleware implements NestMiddleware { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } catch {} | 
					 | 
					 | 
					    } catch {} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  public use(req: Request, res: Response, next: NextFunction) { | 
					 | 
					 | 
					  public use(request: Request, response: Response, next: NextFunction) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    let featureGraphicPath = 'assets/cover.png'; | 
					 | 
					 | 
					    let featureGraphicPath = 'assets/cover.png'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    if (req.path.startsWith('/en/blog/2022/08/500-stars-on-github')) { | 
					 | 
					 | 
					    if (request.path.startsWith('/en/blog/2022/08/500-stars-on-github')) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      featureGraphicPath = 'assets/images/blog/500-stars-on-github.jpg'; | 
					 | 
					 | 
					      featureGraphicPath = 'assets/images/blog/500-stars-on-github.jpg'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else if (req.path.startsWith('/en/blog/2022/10/hacktoberfest-2022')) { | 
					 | 
					 | 
					    } else if (request.path.startsWith('/en/blog/2022/10/hacktoberfest-2022')) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      featureGraphicPath = 'assets/images/blog/hacktoberfest-2022.png'; | 
					 | 
					 | 
					      featureGraphicPath = 'assets/images/blog/hacktoberfest-2022.png'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else if (req.path.startsWith('/en/blog/2022/11/black-friday-2022')) { | 
					 | 
					 | 
					    } else if (request.path.startsWith('/en/blog/2022/11/black-friday-2022')) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      featureGraphicPath = 'assets/images/blog/black-friday-2022.jpg'; | 
					 | 
					 | 
					      featureGraphicPath = 'assets/images/blog/black-friday-2022.jpg'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if ( | 
					 | 
					 | 
					    if ( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      req.path.startsWith('/api/') || | 
					 | 
					 | 
					      request.path.startsWith('/api/') || | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      this.isFileRequest(req.url) || | 
					 | 
					 | 
					      this.isFileRequest(request.url) || | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      !this.isProduction | 
					 | 
					 | 
					      !this.isProduction | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    ) { | 
					 | 
					 | 
					    ) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      // Skip
 | 
					 | 
					 | 
					      // Skip
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      next(); | 
					 | 
					 | 
					      next(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else if (req.path === '/de' || req.path.startsWith('/de/')) { | 
					 | 
					 | 
					    } else if (request.path === '/de' || request.path.startsWith('/de/')) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.send( | 
					 | 
					 | 
					      response.send( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        this.interpolate(this.indexHtmlDe, { | 
					 | 
					 | 
					        this.interpolate(this.indexHtmlDe, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          featureGraphicPath, | 
					 | 
					 | 
					          featureGraphicPath, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          languageCode: 'de', | 
					 | 
					 | 
					          languageCode: 'de', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          path: req.path, | 
					 | 
					 | 
					          path: request.path, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					      ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else if (req.path === '/es' || req.path.startsWith('/es/')) { | 
					 | 
					 | 
					    } else if (request.path === '/es' || request.path.startsWith('/es/')) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.send( | 
					 | 
					 | 
					      response.send( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        this.interpolate(this.indexHtmlEs, { | 
					 | 
					 | 
					        this.interpolate(this.indexHtmlEs, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          featureGraphicPath, | 
					 | 
					 | 
					          featureGraphicPath, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          languageCode: 'es', | 
					 | 
					 | 
					          languageCode: 'es', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          path: req.path, | 
					 | 
					 | 
					          path: request.path, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					      ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else if (req.path === '/it' || req.path.startsWith('/it/')) { | 
					 | 
					 | 
					    } else if (request.path === '/it' || request.path.startsWith('/it/')) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.send( | 
					 | 
					 | 
					      response.send( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        this.interpolate(this.indexHtmlIt, { | 
					 | 
					 | 
					        this.interpolate(this.indexHtmlIt, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          featureGraphicPath, | 
					 | 
					 | 
					          featureGraphicPath, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          languageCode: 'it', | 
					 | 
					 | 
					          languageCode: 'it', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          path: req.path, | 
					 | 
					 | 
					          path: request.path, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					      ); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else if (req.path === '/nl' || req.path.startsWith('/nl/')) { | 
					 | 
					 | 
					    } else if (request.path === '/nl' || request.path.startsWith('/nl/')) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.send( | 
					 | 
					 | 
					      response.send( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        this.interpolate(this.indexHtmlNl, { | 
					 | 
					 | 
					        this.interpolate(this.indexHtmlNl, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          featureGraphicPath, | 
					 | 
					 | 
					          featureGraphicPath, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          languageCode: 'nl', | 
					 | 
					 | 
					          languageCode: 'nl', | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          path: req.path, | 
					 | 
					 | 
					          path: request.path, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					      ); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } else { | 
					 | 
					 | 
					    } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      res.send( | 
					 | 
					 | 
					      response.send( | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        this.interpolate(this.indexHtmlEn, { | 
					 | 
					 | 
					        this.interpolate(this.indexHtmlEn, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          featureGraphicPath, | 
					 | 
					 | 
					          featureGraphicPath, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          languageCode: DEFAULT_LANGUAGE_CODE, | 
					 | 
					 | 
					          languageCode: DEFAULT_LANGUAGE_CODE, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          path: req.path, | 
					 | 
					 | 
					          path: request.path, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
					 | 
					 | 
					          rootUrl: this.configurationService.get('ROOT_URL') | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }) | 
					 | 
					 | 
					        }) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      ); | 
					 | 
					 | 
					      ); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |