Skip to content

Commit

Permalink
Add compression
Browse files Browse the repository at this point in the history
  • Loading branch information
heinerbehrends authored Dec 16, 2022
1 parent 87f5b60 commit 1374328
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 1374328

Please sign in to comment.