How to set maxHeaderSize on Nuxtjs?

1.2k views Asked by At

I'm having 431 issue on my nuxt app. The nuxt app is running on node 12. I read that node 12 is limiting maxHeaderSize to 8KB.

Is there any way to set maxHeaderSize from nuxt.config.js? I've read the documentation but cannot find anything about it.

1

There are 1 answers

3
otezz On BEST ANSWER

I modified the start script and it works fine:

before: "start": "nuxt start",

become: "start": "NODE_OPTIONS='--max-http-header-size=16384' nuxt start",