From 43335d298061241690e3c062b5c2c8f730613402 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Fri, 5 Aug 2022 19:53:56 -0700 Subject: [PATCH] Make sure getcustomtoken cloud function is fast --- functions/src/get-custom-token.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/functions/src/get-custom-token.ts b/functions/src/get-custom-token.ts index 1f20ba09..4aaaac11 100644 --- a/functions/src/get-custom-token.ts +++ b/functions/src/get-custom-token.ts @@ -7,7 +7,13 @@ import { writeResponseError, } from './api' -const opts = { method: 'GET', minInstances: 1 } +const opts = { + method: 'GET', + minInstances: 1, + concurrency: 100, + memory: '2GiB', + cpu: 1, +} as const export const getcustomtoken: EndpointDefinition = { opts,