pacificclimate / weather-anomaly-tool

0 stars 0 forks source link

Enable deployment to an arbitrary URI #49

Closed rod-glover closed 4 years ago

rod-glover commented 6 years ago

We use client-side routing. This causes troubles with proxying a "nice" URL to the actual app. The only solution discovered so far is to specify the proxied route in the package.json attribute homepage. But that means we are hardcoding in the app the place that we will proxy it from, and that's undesirable.

For some details on this problem and how we arrived at the current solution, see README, "Problems with relative paths".

Some possible alternatives to investigate:

rod-glover commented 4 years ago

No we don't use client-side routing. What idiot wrote that? In which case all this nonsense goes away.

Also see whatever we did in CE frontend, which does have routing and doesn't mess us up like this.