Change autogenerated link href's

Because of required site URL re-direction on our deployed site, we need to have the auto-generated link href’s and script src attributes changed. e.g.

<script type="text/javascript" src="/5ab35b93d72ff6f4fe9b9ae551a1a6065e86b756.js"></script>

needs to be:

<script type="text/javascript" src="/gc/5ab35b93d72ff6f4fe9b9ae551a1a6065e86b756.js"></script>

Is there a way to configure meteor to do this?


Just to follow up, the answer here is to set the ROOT_URL environment variable. For my case I needed to do:

set ROOT_URL="http://<IP Address>:3000/gc"

This caused all the auto-generated references to be references to be prepended with ‘/gc’. I also had to add the ‘/gc’ to the front of all the manual references I had to static files in my html.