perf: optimize URL shorten latency to <100ms & add single URL analytics page
This commit is contained in:
1 parent
8ed1562d01
commit
41786f2f51
6 files changed
+633
-31
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user