diff --git a/packages/app/src/pages/index.tsx b/packages/app/src/pages/index.tsx index 4cbe7d211..59f4447c3 100644 --- a/packages/app/src/pages/index.tsx +++ b/packages/app/src/pages/index.tsx @@ -15,7 +15,7 @@ import { UseRequestProvider } from 'ahooks'; import { extend } from 'umi-request'; const request = extend({ - prefix: 'http://localhost:23003/api/', + prefix: process.env.API_URL, timeout: 1000, });