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
Community Members
Community Events
Community Groups

Bitbucket pipelines problem with env variables after publish

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

Atlassian Community Events