Skip to content

Commit 46a0601

Browse files
Salakarjoehan
authored andcommitted
[image-resizer] Increase default memory size, fixes #249 (#308)
* Remove unused config `location` * Set function `availableMemoryMb` size default to 1GB * Add note on `generateResizedImage` readme description about fn memory size. * Revert readme change
1 parent 4c76c8f commit 46a0601

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

image-resizer/functions/lib/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
1818
exports.default = {
1919
bucket: process.env.IMG_BUCKET,
2020
cacheControlHeader: process.env.CACHE_CONTROL_HEADER,
21-
location: process.env.LOCATION,
2221
imageSizes: process.env.IMG_SIZES.split(","),
2322
resizedImagesPath: process.env.RESIZED_IMAGES_PATH,
2423
};

image-resizer/functions/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
export default {
1818
bucket: process.env.IMG_BUCKET,
1919
cacheControlHeader: process.env.CACHE_CONTROL_HEADER,
20-
location: process.env.LOCATION,
2120
imageSizes: process.env.IMG_SIZES.split(","),
2221
resizedImagesPath: process.env.RESIZED_IMAGES_PATH,
2322
};

image-resizer/mod.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ resources:
5858
properties:
5959
sourceDirectory: .
6060
location: ${LOCATION}
61+
availableMemoryMb: 1024
6162
eventTrigger:
6263
eventType: google.storage.object.finalize
6364
resource: projects/_/buckets/${IMG_BUCKET}

0 commit comments

Comments
 (0)