global-electrification-platform / explorer

Global Electrification Platform (Web)
https://electrifynow.energydata.info/
MIT License
11 stars 7 forks source link

Can't access non-root URLs at production #224

Closed vgeorge closed 4 years ago

vgeorge commented 4 years ago

Site was successfully deployed to https://electrifynow.info, but it is not possible visit a link like this one:

https://electrifynow.info/countries

vgeorge commented 4 years ago

@EricSoroos can you have a look? I believe it is necessary to redirect all pages requests to index.html, like we do when serving directly from a S3 bucket.

EricSoroos commented 4 years ago

Ok, I've made the 403 error from S3 return /index.html at the cloudfront layer.

This seems to be a different issue, index.html exists and is loaded but the front end is displaying an error:

image

vgeorge commented 4 years ago

It seems to be working properly now, route /index.html is not supposed to exist.