fix: baseUrl should be same as Url

This commit is contained in:
Dhravya Shah 2024-06-26 16:38:10 -05:00 committed by GitHub
parent 50947c4dc8
commit 1c08c68f6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ export async function getMetaData(url: string) {
const $ = cheerio.load(html);
// Extract the base URL
const baseUrl = new URL(url).origin;
const baseUrl = url
// Extract title
const title = $("title").text().trim();