From cc493f89183036c94321ee881e0581ebf75c21b8 Mon Sep 17 00:00:00 2001 From: Wenqing Gu Date: Tue, 23 Apr 2019 20:38:17 +0000 Subject: [PATCH] Update npm run to fix hpe_header_overflow Nodejs has set max header size to 8k in http_parser, need to provide a larger header size to make the proxy work. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f0fb57556..0428f1a97e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "The frontend part of Redash.", "main": "index.js", "scripts": { - "start": "webpack-dev-server", + "start": "node --max-http-header-size=16385 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js", "bundle": "bin/bundle-extensions", "clean": "rm -rf ./client/dist/", "build": "npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack",