Skip to content

Commit

Permalink
Use HEAD req for isUrlOk check (vercel#14994)
Browse files Browse the repository at this point in the history
Co-authored-by: Cristian Dominguez <[email protected]>
  • Loading branch information
2 people authored and rokinsky committed Jul 11, 2020
1 parent c5b2098 commit 8a89bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-next-app/helpers/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type RepoInfo = {
}

export async function isUrlOk(url: string): Promise<boolean> {
const res = await got(url).catch((e) => e)
const res = await got.head(url).catch((e) => e)
return res.statusCode === 200
}

Expand Down

0 comments on commit 8a89bf1

Please sign in to comment.