I have Backbone powered single page app. App consists of couple of files:
index.html
javascripts/app.js
javascripts/vendor.js
stylesheets/app.css
images/ -> image assets
I want to add prerender.io
service to my app to make it SEO-friendly. The easiest way of doing this for me is to use express.js
hosted on heroku
:
var express = require('express');
var app = express();
app.use(require('prerender-node').set('prerenderToken', 'YOUR_TOKEN'));
// ...
app.listen(process.env.PORT || 5000);
But maybe express
or actually node
are not best for serving static files?
Maybe heroku
isn't best for serving static files?
What will be best solution? What do you recommend?