ember-fastboot / ember-cli-fastboot

Server-side rendering for Ember.js apps
http://ember-fastboot.com/
MIT License
852 stars 160 forks source link

Possible to only use FastBoot for specific routes? #828

Open adambedford opened 3 years ago

adambedford commented 3 years ago

Is it possible to create an allow/block list of routes for FastBoot? I'd like to serve (and cache) a few public routes with FastBoot and serve the regular index.html for other, app-like routes.

Thanks in advance.

snewcomer commented 3 years ago

@adambedford This seems like a good candidate for some middleware. What would you intend to serve with the public routes? Not an index.html?

adambedford commented 3 years ago

@snewcomer we have some CMS-like pages that I'm hoping to cache, along with our homepage (Tutorspot.co.uk) but I don't think we can cache other pages that require authentication. Unless of course the the existing cache can be auth aware?