Skip to content

Commit

Permalink
enable gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
malipetek authored Jun 6, 2022
1 parent 34b95be commit 90ae052
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const dotenv = require('dotenv').config();
require('isomorphic-fetch');
const compression = require('compression');
const express = require('express');
const app = express();
const crypto = require('crypto');
Expand All @@ -13,6 +14,8 @@ const apiSecret = process.env.SHOPIFY_API_SECRET;
const scopes = 'read_products';
const forwardingAddress = process.env.HOST;

app.use(compression());

app.use((req, res, next) => {
console.log(req.path);
next();
Expand Down
79 changes: 79 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"homepage": "https://github.com/jaayperez/shopify-node-express-app#readme",
"dependencies": {
"compression": "^1.7.4",
"cookie": "^0.4.1",
"dotenv": "^16.0.0",
"express": "^4.17.2",
Expand Down

0 comments on commit 90ae052

Please sign in to comment.