fix: request config

This commit is contained in:
archer
2023-04-28 16:47:55 +08:00
parent 56b3ddc147
commit cd9acab938
12 changed files with 22 additions and 20 deletions

View File

@@ -120,7 +120,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
},
{
timeout: 180000,
...axiosConfig
...axiosConfig()
}
);
@@ -196,7 +196,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
{
timeout: 180000,
responseType: isStream ? 'stream' : 'json',
...axiosConfig
...axiosConfig()
}
);