From 7c2f6313b99cdaf1b503cc888f231f5a1810d4fe Mon Sep 17 00:00:00 2001 From: stdavis Date: Fri, 29 Nov 2024 13:18:38 -0700 Subject: [PATCH] fix(functions): v2 syntax upgrade --- functions/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/index.js b/functions/index.js index a35b644..1372793 100644 --- a/functions/index.js +++ b/functions/index.js @@ -1,6 +1,6 @@ import 'dotenv/config'; import initProxy from 'firebase-auth-arcgis-server-proxy'; -import functions from 'firebase-functions/v1'; +import { onRequest } from 'firebase-functions/v2/https'; const options = { host: process.env.AGS_HOST, @@ -45,5 +45,4 @@ const options = { const [proxy, secrets] = initProxy(options); -export const maps = functions.runWith({ secrets, - invoker: 'public' }).https.onRequest(proxy); +export const maps = onRequest({ secrets, invoker: 'public' }, proxy);