Inject nodejs command line option

gaetansenn
70
gaetansenn
commented 3 months ago

Hello,

I would like to know if anyone know how to inject node command line option from nuxt client.

I'm facing a header size problem and would like to increase the maximum size, in bytes, of HTTP headers from NodeJS with this option :

https://nodejs.org/docs/latest-v10.x/api/cli.html#cli_max_http_header_size_size

Thank you

0
gaetansenn
70
gaetansenn
commented 3 months ago

I found the solution ! thanks to @Atinux

The idea is to create a js file according to the nuxt command you want:

require('@nuxt/cli').run(['start'])

and then from your terminal or package.json

node --max-http-header-size=80000 start.js

0
Informations
Question โ€ข Resolved
#c10201 - Created 3 months ago