Why am I getting "This site can't be reached localhost refused to connect"?
This happens when:
Exporting data from dashboards and charts fails
User invitation links point to localhost instead of your domain
To fix this, set the SITE_URL environment variable to your actual domain.