diff --git a/src/views/docs-view/server.ts b/src/views/docs-view/server.ts index effa868f41..84424c41ed 100644 --- a/src/views/docs-view/server.ts +++ b/src/views/docs-view/server.ts @@ -418,9 +418,9 @@ export function getStaticGenerationFunctions< * Note: If we need more granularity here, we could change this to be * part of `rootDocsPath` configuration in `src/data/.json`. */ - const isPublicContentRepo = !['hcp', 'sentinel', 'terraform'].includes( - product.slug - ) + const isHcp = product.slug == 'hcp' + const isSentinel = product.slug == 'sentinel' + const isPublicContentRepo = !isHcp && !isSentinel if (isPublicContentRepo) { layoutProps.githubFileUrl = githubFileUrl }