Add prerender middleware and some options