---
title: Prerender
slug: hyperdealer/prerender
docTags: 
createdAt: 2021-04-19T09:10:57.000Z
---

CMS can send a request to Rendertron on the update of any vehicle.

For tenants filtration - which can handle update events used FilterPolicy. To add a new tenant to the filter&#x20;

you should add its name to [this line](< https://github.com/hypercharge-code/digitaldealer/pull/142/files#diff-d024a52977bd5cd442249ac4b8a396426a003f666833afc0ef44c3249a0a1044R1085>)&#x20;



Lambda [function that handle updates](https://eu-west-1.console.aws.amazon.com/lambda/home?region=eu-west-1#/functions/staging-digitaldealer-CmsVehicleUpsertProcessorFun-4VVVDUQAMVF?tab=configure) called `CmsVehicleUpsertProcessorFunction`&#x20;

Also at this time in souse code is hardcoded information about site domain and languages for generation prerendered pages. So if any tenant add a new language or domain you should update functions `getAvailableLanguage`  or `getAvailableHosts` in the file `hypercharge/digitaldealer/packages/server/src/lib/websiteConfigs.ts`&#x20;





![](https://archbee-doc-uploads.s3.amazonaws.com/5goaGPkGyPYxtK7K75CEC/h_z_RaFDnxQSQOHyqTEcJ_image.png)

