Skip to content

Commit 38bdcf3

Browse files
committed
Fix este#1243
Remove esteMiddleware as well.
1 parent a919184 commit 38bdcf3

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

src/server/frontend/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
/* @flow */
22
import compression from 'compression';
3-
import esteMiddleware from '../lib/esteMiddleware';
43
import express from 'express';
54
import render from './render';
65

76
const app = express();
87

9-
app.use(esteMiddleware());
108
app.use(compression());
119
app.use('/assets', express.static('build', { maxAge: '200d' }));
1210
app.get('*', render);

src/server/lib/esteMiddleware.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/server/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const app = express();
88

99
// $FlowFixMe
1010
app.use(frontend);
11-
app.use(errorHandler);
11+
app.get('*', errorHandler);
1212

1313
app.listen(config.port, () => {
1414
console.log(`Server started at http://localhost:${config.port}`);

0 commit comments

Comments
 (0)