🐛 don't strip port in URL

This commit is contained in:
Nate Sesti 2024-05-01 10:56:59 -07:00
parent 529f7cf738
commit 2ff1b1c769

View file

@ -113,7 +113,9 @@ async function getLinksFromUrl(url: string, path: string) {
}
function splitUrl(url: URL) {
const baseUrl = `${url.protocol}//${url.hostname}`;
const baseUrl = `${url.protocol}//${url.hostname}${
url.port ? ":" + url.port : ""
}`;
const basePath = url.pathname;
return {
baseUrl,