Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
prod dist files and server uses compression
Browse files Browse the repository at this point in the history
  • Loading branch information
askeroff committed Mar 24, 2018
1 parent 09cd6da commit d9c5697
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 57,352 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const express = require('express');
const compression = require('compression');
const session = require('express-session');
const mongoose = require('mongoose');
const expressValidator = require('express-validator');
Expand Down Expand Up @@ -28,6 +29,8 @@ passport.deserializeUser(User.deserializeUser());
const app = express();
const staticAssetsPath = path.resolve(__dirname, 'dist');

app.use(compression());

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));

Expand Down
Loading

0 comments on commit d9c5697

Please sign in to comment.