You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN if [ -n '${BULL_MQ_PRO_NPM_TOKEN}' ] ; then echo 'Building with Enterprise Edition of Novu'; rm -f .npmrc ; cp .npmrc-cloud .npmrc ; fi
But since single quotes are used in the if, string interpolation isn't performed, and the literal string '${BULL_MQ_PRO_NPM_TOKEN}' is always non-null. Thus the npmrc swap is always performed.
👟 Reproduction steps
pnpm docker:build without BULL_MQ_PRO_NPM_TOKEN set. Observe the build output echo "Building with Enterprise Edition of Novu"
👍 Expected behavior
It should use double quotes instead of single so it actually works as intended.
It should securely leverage the Bullmq pro token to correctly identify if we are building the community or enterprise edition.
Novu version
0.23.0
npm version
n/a
node version
n/a
👀 Have you spent some time to check if this bug has been raised before?
📜 Description
The dockerfiles use the syntax:
But since single quotes are used in the if, string interpolation isn't performed, and the literal string '${BULL_MQ_PRO_NPM_TOKEN}' is always non-null. Thus the npmrc swap is always performed.
👟 Reproduction steps
pnpm docker:build
without BULL_MQ_PRO_NPM_TOKEN set. Observe the build output echo "Building with Enterprise Edition of Novu"👍 Expected behavior
It should use double quotes instead of single so it actually works as intended.It should securely leverage the Bullmq pro token to correctly identify if we are building the community or enterprise edition.
Novu version
0.23.0
npm version
n/a
node version
n/a
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
Yes I am willing to submit a PR! Ping me if it's more convenient for me to make those couple quote changes and submit a PR :)
The text was updated successfully, but these errors were encountered: