mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
Cleanup
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user