Skip to content

Commit

Permalink
fix(functions): v2 syntax upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Nov 29, 2024
1 parent fbd211b commit 7c2f631
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions functions/index.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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);

0 comments on commit 7c2f631

Please sign in to comment.