From a365d16ec49b3dd4e1f326027493d12f4662e255 Mon Sep 17 00:00:00 2001 From: stdavis Date: Mon, 7 Oct 2024 10:30:24 -0600 Subject: [PATCH] fix(function): upgrade to v2 syntax --- functions/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/index.js b/functions/index.js index 8ac830b..551a484 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'; +import { onRequest } from 'firebase-functions/https'; const options = { host: process.env.AGS_HOST, @@ -43,5 +43,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);