trynmaps / metrics-mvp

Prototype of public transit data visualization system
https://muni.opentransit.city
MIT License
30 stars 34 forks source link

Frontend doesn't load when serving from backend #663

Closed EddyIonescu closed 4 years ago

EddyIonescu commented 4 years ago

The changes made to support the static build caused an error to be thrown when loading the frontend from the application Uncaught SyntaxError: Unexpected token '<'

This breaks our Heroku deployments (eg. https://eddy-opentransit.herokuapp.com/) as those use the application to serve the frontend.

EddyIonescu commented 4 years ago

@akgupta89 just wondering did you have any ideas for this? Otherwise I'll look into investigating it.

hathix commented 4 years ago

I think this is the same as #651: an HTML file is being sent as JavaScript, and JavaScript sees a "<" to open a tag and freaks out.

EddyIonescu commented 4 years ago

https://github.com/trynmaps/metrics-mvp/pull/664