Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Live Intent Id module needs to remove `process.env` reference

Open coreyb-cbs opened this issue 2 years ago • 5 comments

Type of issue

module update needed

Description

The Live Intent Id module contains code referencing process.env which should not be used anymore. I chatted with @dgirardi about this, so he should be able to provide more insight if needed. For us, it's causing runtime errors in our dev environment as we're trying to upgrade ad our ad library to webpack 5 (we load Prebid as a module). We've tried working around this via various webpack config plugins (environmentPlugin, definePlugin, dotenv-webpack, etc) but have not had any luck.

https://github.com/prebid/Prebid.js/blob/master/modules/liveIntentIdSystem.js#L159

coreyb-cbs avatar Dec 20 '23 18:12 coreyb-cbs

Cc @3link

patmmccann avatar Dec 20 '23 23:12 patmmccann

I reached out to Chris Paart at Live Intent about this and on Thurs, Dec 21, 2023 he stated:

We are aware of this "process.env" usage and it is on our team's list to get rid of at the beginning of 2024. I can confirm when that has been completed.

coreyb-cbs avatar Jan 02 '24 14:01 coreyb-cbs

@coreyb-cbs Could you please try the changes in this pull request and tell me if that works for you?

3link avatar Jan 09 '24 13:01 3link

@3link Looks good! Thank you!

coreyb-cbs avatar Jan 11 '24 21:01 coreyb-cbs

@3link Looks good! Thank you!

Thank you for confirming 👍

3link avatar Jan 12 '24 13:01 3link