Commit cd06f07c authored by mingyard's avatar mingyard

feat:延长超时时间

parent 1b348885
# 使用官方 Node.js 镜像作为基础镜像 # 使用官方 Node.js 镜像作为基础镜像
FROM node:22-alpine as build-stage FROM node:20-alpine as build-stage
# 设置工作目录 # 设置工作目录
WORKDIR /code WORKDIR /code
...@@ -18,7 +18,7 @@ COPY . . ...@@ -18,7 +18,7 @@ COPY . .
RUN yarn build RUN yarn build
# 使用更小的 Node.js 镜像作为运行时镜像 # 使用更小的 Node.js 镜像作为运行时镜像
FROM node:22-slim as app-stage FROM node:20-slim as app-stage
# 设置环境变量 # 设置环境变量
ENV NODE_ENV=development ENV NODE_ENV=development
......
...@@ -44,7 +44,7 @@ export async function axiosPostRequest( ...@@ -44,7 +44,7 @@ export async function axiosPostRequest(
) { ) {
try { try {
// await 不能删 // await 不能删
return await Axios.post(url, data, { ...config, timeout: 10000 }); return await Axios.post(url, data, { ...config, timeout: 20000 });
} catch (e) { } catch (e) {
console.log(e); console.log(e);
if (isAxiosError(e)) { if (isAxiosError(e)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment