diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 529bbbe2..4e9d2941 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-1264: Fix Eventz to use endpoint url from env + ## [1.71.3] - 2026-03-16 - TMS-1259: Disable link underline in theme.json diff --git a/lib/Constants.php b/lib/Constants.php index fd3e024b..f36f72c4 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -74,7 +74,7 @@ private function define() { } if ( ! defined( 'PIRKANMAA_EVENTZ_API_URL' ) ) { - define( 'PIRKANMAA_EVENTZ_API_URL', 'https://backend.ver5.eventz.today/' ); + define( 'PIRKANMAA_EVENTZ_API_URL', env( 'PIRKANMAA_EVENTZ_API_URL' ) ?? '' ); } if ( ! defined( 'PIRKANMAA_EVENTZ_API_KEY' ) ) {