'use strict';

const mirror = require('./mirror'),
    functions = require('firebase-functions');

module.exports = { mirror: functions.https.onRequest(mirror.app) };

'use strict';

const mirror = require('./mirror'),
    functions = require('firebase-functions');

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

Set maxInstances to 10, timeout to 9min and memory to 128MB
Set maxInstances to 10, timeout to 9min and memory to 128MB
