Website: Update homepage personalization, add note to custom hook. (#18433)

Changes:
- Updated personalization on the integrations section of the homepage
for users with `vm` or `eo-security`.
- Added a `FUTURE:` note to the custom hook detailing how to use the
platform model to be smarter about sending requests to the Algolia
crawler.
This commit is contained in:
Eric
2024-04-19 17:40:45 -05:00
committed by GitHub
parent b4d009804d
commit 502f2c9a38
3 changed files with 17 additions and 4 deletions
+2
View File
@@ -89,6 +89,8 @@ will be disabled and/or hidden in the UI.
fromName: sails.config.custom.fromName,
});
// Send a request to our Algolia crawler to reindex the website.
// FUTURE: If this breaks again, use the Platform model to store when the website was last crawled
// (platform.algoliaLastCrawledWebsiteAt), and then only send a request if it was <30m ago, then remove dyno check.
if(sails.config.environment === 'production' && process.env.DYNO === 'web.1'){
sails.helpers.http.post.with({
url: `https://crawler.algolia.com/api/1/crawlers/${sails.config.custom.algoliaCrawlerId}/reindex`,