Discovered this issue when I was trying to set up the deployment of the Stockpile on Firebase.
I had modified src/utils/config.js file on my local repo with my Adobe Stock API key.
I did not commit the changes in src/utils/config.js because I did not want to my Adobe Stock API key to be stored in the repository.
When I used npm run build to create the production build of the App for deployment on Firebase, it did not use my uncommitted version of src/utils/config.js, the build script used the last committed version of src/utils/config.js which contains a placeholder value for the Adobe Stock API key.
To get around this issue, I had to create a local branch and commit my modified src/utils/config.js before running npm run build to get the production build of the App to use my Adobe Stock API key.
Discovered this issue when I was trying to set up the deployment of the Stockpile on Firebase.
I had modified
src/utils/config.js
file on my local repo with my Adobe Stock API key.I did not commit the changes in
src/utils/config.js
because I did not want to my Adobe Stock API key to be stored in the repository.When I used
npm run build
to create the production build of the App for deployment on Firebase, it did not use my uncommitted version ofsrc/utils/config.js
, the build script used the last committed version ofsrc/utils/config.js
which contains a placeholder value for the Adobe Stock API key.To get around this issue, I had to create a local branch and commit my modified
src/utils/config.js
before runningnpm run build
to get the production build of the App to use my Adobe Stock API key.