Skip to content

Commit

Permalink
fix(function): upgrade to v2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 7, 2024
1 parent 5972da2 commit a365d16
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';
import { onRequest } from 'firebase-functions/https';

const options = {
host: process.env.AGS_HOST,
Expand Down Expand Up @@ -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);

0 comments on commit a365d16

Please sign in to comment.