Skip to content

Commit 63ac0e0

Browse files
committed
Apply feedback
1 parent 5c62c9f commit 63ac0e0

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

markdown/docs/user-guide.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,15 @@ module.exports = {
297297
app.use(function(req, resp, next) {
298298
var outputPath = process.env['EMBER_DIST_FOLDER'];
299299

300-
var fastbootMiddleware = FastBootExpressMiddleware({
301-
distPath: outputPath
302-
});
303-
304-
fastbootMiddleware(req, resp, next);
300+
if (req.serveUrl) {
301+
var fastbootMiddleware = FastBootExpressMiddleware({
302+
distPath: outputPath
303+
});
304+
305+
fastbootMiddleware(req, resp, next);
306+
} else {
307+
next();
308+
}
305309
});
306310
}
307311
};

0 commit comments

Comments
 (0)