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
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!
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