Fix broken API calls
expressStaticGzip was serving empty index files when it saw requests ending in '/' like 'api/newGoogle/'
This commit is contained in:
1 parent
74c615f156
commit
56795afabb
1 file changed
+2
-1
@@ -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`));
|
||||
|
||||
Reference in new issue
Block a user