This commit is contained in:
Tobe O 2018-11-15 16:22:45 -05:00
parent 42fd602492
commit c20c25fc04

View file

@ -28,6 +28,7 @@ void start(int id) {
var http = new AngelHttp.custom(app, startShared, useZone: false); var http = new AngelHttp.custom(app, startShared, useZone: false);
app.get('/', (req, res) => res.write('Hello, world!')); app.get('/', (req, res) => res.write('Hello, world!'));
app.optimizeForProduction(force: true);
var oldHandler = app.errorHandler; var oldHandler = app.errorHandler;
app.errorHandler = (e, req, res) { app.errorHandler = (e, req, res) {