Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep alive on Node env #162

Open
leomp12 opened this issue Feb 20, 2022 · 0 comments
Open

keep alive on Node env #162

leomp12 opened this issue Feb 20, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@leomp12
Copy link
Member

leomp12 commented Feb 20, 2022

To improve SSR performance, on Node we should create axios instance by default with options:

httpAgent: new http.Agent({ keepAlive: true }),
httpsAgent: new https.Agent({ keepAlive: true }),

It may be optionally disabled with a new env var.

use https://undici.nodejs.org/#/ ? 🤔

@leomp12 leomp12 added enhancement New feature or request help wanted Extra attention is needed labels Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant