Skip to content

Commit a4317b4

Browse files
committed
Reduce edgefunction timeout to 10 sec
1 parent 819dfd0 commit a4317b4

File tree

1 file changed

+1
-1
lines changed
  • netlify/edge-functions/common

1 file changed

+1
-1
lines changed

netlify/edge-functions/common/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export async function get(url: string, timeout: number = 30000) {
1+
export async function get(url: string, timeout: number = 10000) {
22
const c = new AbortController();
33
const id = setTimeout(() => c.abort(), timeout);
44
const res = await fetch(url, { signal: c.signal });

0 commit comments

Comments
 (0)