perf: optimize URL shorten latency to <100ms & add single URL analytics page

This commit is contained in:
Tien Tran committed 2026-09-28 22:55:48 -07:00
1 parent 8ed1562d01
commit 41786f2f51
6 files changed
+633 -31

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ import * as cheerio from "cheerio";
export async function fetchUrlTitle(targetUrl: string): Promise<string | null> {
try {
const controller = new AbortController();
const timeout = setTimeout(() => controller.abort(), 6000);
const timeout = setTimeout(() => controller.abort(), 2500);
const res = await fetch(targetUrl, {
signal: controller.signal,