mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 21:52:43 +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:
@@ -10,7 +10,8 @@ const GoogleActions = require('./server/googleActions.js');
|
|||||||
// Serve brotli-compressed static files if available
|
// Serve brotli-compressed static files if available
|
||||||
app.use('/', expressStaticGzip(`${__dirname}/build`, {
|
app.use('/', expressStaticGzip(`${__dirname}/build`, {
|
||||||
enableBrotli : true,
|
enableBrotli : true,
|
||||||
orderPreference : ['br']
|
orderPreference : ['br'],
|
||||||
|
index : false
|
||||||
}));
|
}));
|
||||||
|
|
||||||
//app.use(express.static(`${__dirname}/build`));
|
//app.use(express.static(`${__dirname}/build`));
|
||||||
|
|||||||
Reference in New Issue
Block a user