Skip to content

Commit

Permalink
Set maxInstances to 10, timeout to 9min and memory to 128MB
Browse files Browse the repository at this point in the history
  • Loading branch information
eexit committed May 20, 2022
1 parent 27be8eb commit 9e880b5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@
const mirror = require('./mirror'),
functions = require('firebase-functions');

module.exports = { mirror: functions.https.onRequest(mirror.app) };
module.exports = {
mirror: functions
.runWith({
maxInstances: 10,
timeoutSeconds: 540, // 9 min, max
memory: "128MB", // min
})
.https
.onRequest(mirror.app)
};

0 comments on commit 9e880b5

Please sign in to comment.