Open cburgdorf opened 10 years ago
It just struck me that it might be a bad idea to host the frontend on github pages. Because that would hinder us from using something like prerender.io to fetch snapshots from queries with result lists. But this could be a huge SEO boost.
Currently we have the UI and the search API in one project with the UI served as static files through the same node.js process that serves the search API. We host that as one app on heroku.
That is a bit unfortunate and we should better split the projects into.
ninya.github.io - this should be the frontend served through github pages.
ninya-search-api - this should be the search API served through heroku.
Steps to do:
search.ninya.io
and point that tostackwho.herokuapp.com
www.ninya.io
to do ajax againstsearch.ninya.io
via CORS headers (http://stackoverflow.com/questions/11001817/allow-cors-rest-request-to-a-express-node-js-application-on-heroku)www.ninya.io
that points to our github pages frontend