AlexanderOtavka / ride-board

Ride sharing for Grinnell students
https://rideboard.app
MIT License
1 stars 3 forks source link

Fix email links for review apps #66

Open AlexanderOtavka opened 4 years ago

AlexanderOtavka commented 4 years ago

Right now the production config has rideboard.app hard coded as the link domain for emails. This means confirmation and password reset email links don't work properly in review apps because they redirect to the production app. We should update the config to detect when it is in a review app environment, and use the review app host instead.

The solutions may want to use app.json environments to detect a review app, and injected environment variables to reconstruct the hostname.