diff --git a/dist/server/index.js b/dist/server/index.js index 150a5922d2c..4635a452f52 100755 --- a/dist/server/index.js +++ b/dist/server/index.js @@ -73,7 +73,7 @@ if (_commander2.default.staticDir) { var staticPath = _path2.default.resolve(_commander2.default.staticDir); if (_fs2.default.existsSync(staticPath)) { logger.log('=> Loading static files from: ' + staticPath + ' .'); - app.use(_express2.default.static(staticPath)); + app.use(_express2.default.static(staticPath, { index: false })); } else { logger.error('Error: no such directory to load static files: ' + staticPath); process.exit(-1); diff --git a/src/server/index.js b/src/server/index.js index 7e887e60825..59862615138 100755 --- a/src/server/index.js +++ b/src/server/index.js @@ -37,7 +37,7 @@ if (program.staticDir) { const staticPath = path.resolve(program.staticDir); if (fs.existsSync(staticPath)) { logger.log(`=> Loading static files from: ${staticPath} .`); - app.use(express.static(staticPath)); + app.use(express.static(staticPath, { index: false })); } else { logger.error(`Error: no such directory to load static files: ${staticPath}`); process.exit(-1);