We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c62c9f commit 63ac0e0Copy full SHA for 63ac0e0
1 file changed
markdown/docs/user-guide.md
@@ -297,11 +297,15 @@ module.exports = {
297
app.use(function(req, resp, next) {
298
var outputPath = process.env['EMBER_DIST_FOLDER'];
299
300
- var fastbootMiddleware = FastBootExpressMiddleware({
301
- distPath: outputPath
302
- });
303
-
304
- fastbootMiddleware(req, resp, next);
+ if (req.serveUrl) {
+ var fastbootMiddleware = FastBootExpressMiddleware({
+ distPath: outputPath
+ });
+
305
+ fastbootMiddleware(req, resp, next);
306
+ } else {
307
+ next();
308
+ }
309
});
310
}
311
};
0 commit comments