Skip to content

Commit

Permalink
🐛 FIX: Add config.httpclient.useHttpClientNext defined (#5001)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Aug 28, 2022
1 parent 2ffb37a commit 2c5ba48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ declare module 'egg' {
dnsCacheLookupInterval?: number;
/** DNS cache max age */
dnsCacheMaxLength?: number;
/** use urllib@3 HttpClient */
useHttpClientNext?: boolean;
}

export interface EggAppConfig {
Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/apps/app-ts/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ export default () => {
},
};

config.httpclient = {
useHttpClientNext: false,
};

return config;
}

1 comment on commit 2c5ba48

@vercel
Copy link

@vercel vercel bot commented on 2c5ba48 Aug 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

egg – ./

egg-git-master-suyi.vercel.app
egg-pi.vercel.app
egg-suyi.vercel.app
eggjs.org
www.eggjs.org

Please sign in to comment.