Skip to content

Commit

Permalink
only run checks on verified domains
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed May 6, 2024
1 parent 0c7f641 commit 07c7202
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
pnpm turbo compile
pnpm --filter=@fern-api/healthchecks dist:cli
- name: Run Healthchecks
- name: Run HealthchecksY
run: |
node packages/healthchecks/dist/cli.cjs docs run
1 change: 1 addition & 0 deletions fern/apis/vercel/definition/v9/domains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ types:
Domain:
properties:
name: string
verified: boolean

service:
base-path: /v9/projects/{projectId}/domains
Expand Down
2 changes: 1 addition & 1 deletion packages/healthchecks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"devDependencies": {
"@fern-api/fdr-sdk": "workspace:*",
"@fern-ui/fdr-utils": "workspace:*",
"@fern-fern/vercel": "0.0.1",
"@fern-fern/vercel": "0.0.2",
"@types/jest": "^29.5.11",
"@types/node": "^18.7.18",
"@types/yargs": "^17.0.32",
Expand Down
5 changes: 4 additions & 1 deletion packages/healthchecks/src/getDocsURLs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ export async function getAllFernDocsWebsites(): Promise<string[]> {
limit: "100",
teamId: "team_6FKOM5nw037hv8g2mTk3gaH7",
});
return [...CUSTOM_SUBPATHS, ...listDomainsResponse.domains.map((customDomain) => customDomain.name)];
const verifiedDomains = listDomainsResponse.domains
.filter((customDomain) => customDomain.verified)
.map((customDomain) => customDomain.name);
return [...CUSTOM_SUBPATHS, ...verifiedDomains];
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07c7202

Please sign in to comment.