Setting up Express with bs-express


How would I convert this to ReasonML using bs-express? Seems simple but I’m stuck on reproducing the last line:

const App = Express();
App.use(’/*’, Express.static(‘dist/index.html’));

I want all routes to point towards the index.html file.


Figured it out as soon as I posted, I forgot to insert “*”

In case another noob comes after me:

let options = Static.defaultOptions();
Static.make("…/dist/index.html", options) |> Static.asMiddleware;