0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Fix broken API calls

expressStaticGzip was serving empty index files when it saw requests ending in '/' like 'api/newGoogle/'
This commit is contained in:
Trevor Buckner
2020-11-12 17:17:02 -05:00
parent 74c615f156
commit 56795afabb

View File

@@ -10,7 +10,8 @@ const GoogleActions = require('./server/googleActions.js');
// Serve brotli-compressed static files if available
app.use('/', expressStaticGzip(`${__dirname}/build`, {
enableBrotli : true,
orderPreference : ['br']
orderPreference : ['br'],
index : false
}));
//app.use(express.static(`${__dirname}/build`));