@rashid301 wrote:
I have an existing ember application. I am trying to make it fastboot compatible.
However, fastboot is unable to serve the page statically. After digging through the code, I found this snippet which is causing the issue.if (broccoliHeader['url'] === req.serveUrl && enableFastBootServe) { // if it is a base page request, then have fastboot serve the base page if (!this.fastboot) { // TODO(future): make this configurable for allowing apps to pass sandboxGlobals // and custom sandbox class this.ui.writeLine(chalk.green('App is being served by FastBoot')); this.fastboot = new FastBoot({ distPath: outputPath }); } let fastbootMiddleware = FastBootExpressMiddleware({ fastboot: this.fastboot }); fastbootMiddleware(req, resp, next); } else { // forward the request to the next middleware (example other assets, proxy etc) next(); }
I have found that for my App, req.serveUrl is always undefined. Can anyone help me understand why that is the case and how to fix it.
I am using ember-cli 2.13.2
Posts: 6
Participants: 2