Skip to content

Commit 9ffd251

Browse files
committed
add localhost for pr checks
1 parent cd1596e commit 9ffd251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/checkLinks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function crawlPages(url: string, browser: Browser, path: string) {
3131
}
3232

3333
function isInternal(url: string) {
34-
return url.includes('docs.sei');
34+
return url.includes('docs.sei') || url.includes('localhost:3000');
3535
}
3636

3737
async function checkInternalLinks(url: string, page: Page, path: string, browser: Browser) {
@@ -58,7 +58,7 @@ async function checkExternalLinks(url: string, page: Page, path: string, browser
5858

5959
async function isLinkBroken(page: Page, url: string, path: string) {
6060
if (visitedLinks.has(url)) return false;
61-
if (url.includes('localhost') || url.includes('.tar.gz')) return false;
61+
if ((url.includes('localhost') && !url.includes(':3000')) || url.includes('.tar.gz')) return false;
6262

6363
let pageResponse: Response;
6464
try {

0 commit comments

Comments
 (0)