Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,370,017
Community Members
 
Community Events
168
Community Groups

Bitbucket pipelines problem with env variables after publish

Hi,
I have some problem with env variables. For some reason after I publish project by the bitbucket pipeline to jfrog and use the deployed package I have local urls for requests, so it doesn't see variables from .env file.
E.g. env file:
```
REACT_APP_VERSION=$npm_package_version
SOME_URL=https://.....
```
I tried to export variables 
```
- set -o allexport
- source .env
- set +o allexport
- npm run build
- npm publish
```
but it doesn't seem to work :(

1 answer

I close the topic :D I've found problem inside webpack config and missing babel load and because of that generated dist did not contain env variables

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events