nx/s3-cache - bucketName environment variable #30706
mikeathers
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When getting the bucket name, can we check for an environment variable first so we can use a different bucket in different environments?
The suggested change would be this:
return new S3RemoteCache(s3Client, {
bucket: process.env.NX_S3_BUCKET || nxJson.s3.bucket, <--- this line
encryptionKey: nxJson.s3.encryptionKey,
localMode: nxJson.s3.localMode,
ciMode: nxJson.s3.ciMode
});
Thanks
Beta Was this translation helpful? Give feedback.
All reactions