0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00
This commit is contained in:
Trevor Buckner
2020-11-11 22:21:27 -05:00
parent 133af4ea2c
commit 74c615f156

View File

@@ -8,14 +8,6 @@ const homebrewApi = require('./server/homebrew.api.js');
const GoogleActions = require('./server/googleActions.js');
// Serve brotli-compressed static files if available
// app.get(['*.js', '*.css'], function(req, res, next) {
// if(fs.existsSync(`build${req.url}.br`)){
// req.url = `${req.url}.br`;
// res.set('Content-Encoding', 'br');
// }
// next();
// });
app.use('/', expressStaticGzip(`${__dirname}/build`, {
enableBrotli : true,
orderPreference : ['br']