Re:Show HN: PNGR – Docker-compose for a Postgres-Nginx-Golan...
by charlesworth91 on Saturday November 23, 2019 @06:02AM
(#21613533)
I came up on this issue, I think the main problem is as React-Router is being used its a SPA; all front end routes need to resolve to the same index.html. Totally do-able with Go but it was a bit of a pain to get it working, I ended up wrapping the "route not found" handler with some logic to serve index for given frontend routes. nginx gets you this very quickly so I ended up using this instead.
[ Parent
| on HN ]
There are no comments on this comment yet.