Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Oct 10, 2024
1 parent 349de32 commit daf2cfc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/ui/docs-bundle/src/server/withInitialProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export async function withInitialProps({
FernNavigation.hasMetadata(n) &&
n.authed &&
auth == null &&
!featureFlags.isUnathenticatedPagesDiscoverable
!featureFlags.isAuthenticatedPagesDiscoverable
) {
return false;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/fern-docs-edge-config/src/getFeatureFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function getFeatureFlags(domain: string): Promise<FeatureFlags> {
const isFileForgeHackEnabled = checkDomainMatchesCustomers(domain, config["file-forge-hack-enabled"]);
const is404PageHidden = checkDomainMatchesCustomers(domain, config["hide-404-page"]);
const isNewSearchExperienceEnabled = checkDomainMatchesCustomers(domain, config["new-search-experience"]);
const isUnathenticatedPagesDiscoverable = checkDomainMatchesCustomers(
const isAuthenticatedPagesDiscoverable = checkDomainMatchesCustomers(
domain,
config["authenticated-pages-discoverable"],
);
Expand Down Expand Up @@ -123,7 +123,7 @@ export async function getFeatureFlags(domain: string): Promise<FeatureFlags> {
isFileForgeHackEnabled,
is404PageHidden,
isNewSearchExperienceEnabled,
isUnathenticatedPagesDiscoverable,
isAuthenticatedPagesDiscoverable,
grpcEndpoints,
};
} catch (e) {
Expand Down Expand Up @@ -158,7 +158,7 @@ export async function getFeatureFlags(domain: string): Promise<FeatureFlags> {
isFileForgeHackEnabled: false,
is404PageHidden: false,
isNewSearchExperienceEnabled: false,
isUnathenticatedPagesDiscoverable: false,
isAuthenticatedPagesDiscoverable: false,
grpcEndpoints: [],
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/fern-docs-utils/src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface FeatureFlags {
isFileForgeHackEnabled: boolean;
is404PageHidden: boolean;
isNewSearchExperienceEnabled: boolean;
isUnathenticatedPagesDiscoverable: boolean;
isAuthenticatedPagesDiscoverable: boolean;
// TODO: remove this after pinecone demo, this is a temporary flag
grpcEndpoints: readonly string[];
}
Expand Down Expand Up @@ -61,7 +61,7 @@ export const DEFAULT_FEATURE_FLAGS: FeatureFlags = {
isFileForgeHackEnabled: false,
is404PageHidden: false,
isNewSearchExperienceEnabled: false,
isUnathenticatedPagesDiscoverable: false,
isAuthenticatedPagesDiscoverable: false,
// TODO: remove this after pinecone demo, this is a temporary flag
grpcEndpoints: [],
};

0 comments on commit daf2cfc

Please sign in to comment.