Add env setting to image resizer, part 1.
Thanks to xet7 !
This commit is contained in:
1 parent
21e0e68a02
commit
9066bd1a0f
1 file changed
+7
@@ -0,0 +1,7 @@
|
||||
Meteor.startup(() => {
|
||||
if (process.env.MAX_IMAGE_PIXEL) {
|
||||
Meteor.settings.public.MAX_IMAGE_PIXEL = process.env.MAX_IMAGE_PIXEL;
|
||||
Meteor.settings.public.IMAGE_COMPRESS_RATIO =
|
||||
process.env.IMAGE_COMPRESS_RATIO;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user