mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 18:42:40 +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');
|
const GoogleActions = require('./server/googleActions.js');
|
||||||
|
|
||||||
// Serve brotli-compressed static files if available
|
// 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`, {
|
app.use('/', expressStaticGzip(`${__dirname}/build`, {
|
||||||
enableBrotli : true,
|
enableBrotli : true,
|
||||||
orderPreference : ['br']
|
orderPreference : ['br']
|
||||||
|
|||||||
Reference in New Issue
Block a user