eea / volto-matomo

Matomo integration for Volto
MIT License
3 stars 1 forks source link

Not reading RAZZLE vars in production mode. #11

Closed giuliaghisini closed 2 years ago

giuliaghisini commented 2 years ago

In production mode (using build) razzle variables are not loaded.

I think the problem is that them are readed from window.env instead process.env it should be process.env?.RAZZLE_MATOMO_SITE_ID proveces.env?.RAZZLE_MATOMO_URL

danielamormocea commented 2 years ago

Hi @giuliaghisini

I tested it and it works fine on my side and on demo (so also on prod). If the problem persists at you, I'd kindly ask you to write all the steps so we can also reproduce it. Thanks!