Skip to content

Commit

Permalink
fix issue with missing sentinel collection pages
Browse files Browse the repository at this point in the history
  • Loading branch information
zchsh committed Sep 11, 2024
1 parent 2c882ce commit 6d71314
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/collection-view/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ export async function getCollectionPagePaths(): Promise<CollectionPagePath[]> {
collectionProductSlug === 'cloud' ? 'hcp' : collectionProductSlug
/**
* Only build collections where the `productSlug` is a valid beta product.
* As well, for all non-HCP products, only build collections where
* `theme` matches the `productSlug`.
* As well, for all non-HCP products except Sentinel, only build collections
* where `theme` matches the `productSlug`.
*
* Once all products are 'onboarded' we can remove this filtering layer
* for the beta products.
Expand All @@ -169,8 +169,9 @@ export async function getCollectionPagePaths(): Promise<CollectionPagePath[]> {
* https://app.asana.com/0/1201903760348480/1201932088801131/f
*/
const isCloud = collectionProductSlug == 'cloud'
const isSentinel = collectionProductSlug === 'sentinel'
const themeMatches = collectionProductSlug === collection.theme
const shouldBuildCollectionPath = isCloud || themeMatches
const shouldBuildCollectionPath = isCloud || isSentinel || themeMatches

if (shouldBuildCollectionPath) {
paths.push({
Expand Down

0 comments on commit 6d71314

Please sign in to comment.