Search code examples
elmelm-reactor

Running elm reactor through a reverse proxy: How can I add an url prefix to links to _elm?


The html file served by elm reactor contains links to _elm/styles.css and _elm/elm.js

I am now trying to run elm reactor via a reverse proxy which routes http://myhost/myprefix to http://localhost:8000.

However this would require that the links refer to myprefix/_elm/*

How can this be achieved ?


Solution

  • Elm Reactor is quite limited and only meant to get you started. Maybe something like Elm Live will give you better results. It has at least some config options regarding proxies you might want to take a look at.