diff --git a/server.js b/server.js index 0543cea..75b3526 100644 --- a/server.js +++ b/server.js @@ -9,8 +9,14 @@ const port = process.env.PORT || 3000; const app = express(); app.use(express.static(__dirname + '/client/dist')); + +// +// Limit the body size +// +app.use(bodyParser.urlencoded({limit: '50mb', extended: true})); app.use(bodyParser.json({ strict: false, + limit: '50mb' })); app.use(cors()); @@ -32,4 +38,4 @@ app.use((err, req, res) => { }) app.listen(port); -console.log(`Serving at http://localhost:${port}`); \ No newline at end of file +console.log(`Serving at http://localhost:${port}`);