From 13743288e209f06af8f33270a7078c379e59f080 Mon Sep 17 00:00:00 2001 From: Heiner Behrends <33118536+heinerbehrends@users.noreply.github.com> Date: Fri, 16 Dec 2022 19:45:33 +0100 Subject: [PATCH] Add compression --- server/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/index.js b/server/index.js index 4134d48..0d47fc0 100644 --- a/server/index.js +++ b/server/index.js @@ -6,6 +6,9 @@ import connect from './connectIO'; const app = express(); const http = require('http').Server(app); const io = require('socket.io')(http); +const compression = require('compression'); + +app.use(compression()); app.use(express.static(path.join(__dirname, '../client/build'))); app.get('*', (req, res) => {