Skip to content

Commit 9e880b5

Browse files
committed
Set maxInstances to 10, timeout to 9min and memory to 128MB
1 parent 27be8eb commit 9e880b5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

functions/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
const mirror = require('./mirror'),
44
functions = require('firebase-functions');
55

6-
module.exports = { mirror: functions.https.onRequest(mirror.app) };
6+
module.exports = {
7+
mirror: functions
8+
.runWith({
9+
maxInstances: 10,
10+
timeoutSeconds: 540, // 9 min, max
11+
memory: "128MB", // min
12+
})
13+
.https
14+
.onRequest(mirror.app)
15+
};

0 commit comments

Comments
 (0)