fix: increase timeout for now

This commit is contained in:
Stephen Zhou
2025-11-17 11:18:24 +08:00
parent e1efc058cf
commit 0b806fcf07
5 changed files with 5 additions and 5 deletions
@@ -12,7 +12,7 @@ import { logger } from "../logger"
export const followClient = new FollowClient({
credentials: "include",
timeout: 10000,
timeout: 30000,
baseURL: env.VITE_API_URL,
fetch: async (input, options = {}) =>
@@ -11,7 +11,7 @@ import { getClientId, getSessionId } from "./client-session"
export const followClient = new FollowClient({
credentials: "include",
timeout: 10000,
timeout: 30000,
baseURL: env.VITE_API_URL,
fetch: async (input, options = {}) =>
fetch(input.toString(), {
+1 -1
View File
@@ -15,7 +15,7 @@ import { proxyEnv } from "./proxy-env"
export const followClient = new FollowClient({
credentials: "omit",
timeout: 10000,
timeout: 30000,
baseURL: proxyEnv.API_URL,
fetch: async (input, options = {}) => fetch(input.toString(), options as any) as any,
})
+1 -1
View File
@@ -8,7 +8,7 @@ import PKG from "../../../desktop/package.json"
export const followClient = new FollowClient({
credentials: "include",
timeout: 10000,
timeout: 30000,
baseURL: env.VITE_EXTERNAL_API_URL || env.VITE_API_URL,
fetch: async (input: any, options = {}) =>
fetch(input.toString(), {
+1 -1
View File
@@ -62,7 +62,7 @@ export const createFollowClient = () => {
const client = new FollowClient({
credentials: "include",
timeout: 10000,
timeout: 30000,
baseURL,
fetch: async (input: any, options = {}) => fetch(input.toString(), options),
})