Hi.
I use the create-react-app and bitbucket pipeline. I have defined bitbucket variables in repo settings, but Bitbucket Variables in my js code are undefined. I'm trying to call process.env.URL(my variable in bitbucket) when process.env.NODE_ENV is in production mode.
What's wrong with my expectations? Can I use it in my code? Could this be a bitbucket problem?
I would be grateful for any help. Thanks a lot.
Hi, @Roman Schepkin! Welcome to the community!
It looks like you have defined a Repository variable name (process.env.URL) and you are trying to call a different variable name (process.env.NODE_ENV) in your code, is that correct?
In order to troubleshoot the issue further, could you please share the following information with me?
The repository variable name;
How you are using the variable name in your code. Please share the entire line of the code;
Thank you.
Kind regards,
Caroline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.