Skip to content

Commit 42e515f

Browse files
Making Http and Callable Dart functions Public when deployed
1 parent e28281f commit 42e515f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/deploy/functions/release/fabricator.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,16 @@ export class Fabricator {
754754
)
755755
.catch(rethrowAs(endpoint, "set invoker"));
756756
}
757+
} else if (backend.isCallableTriggered(endpoint)) {
758+
await this.executor
759+
.run(() =>
760+
run.setInvokerUpdate(
761+
endpoint.project,
762+
`projects/${endpoint.project}/locations/${endpoint.region}/services/${endpoint.runServiceId}`,
763+
["public"],
764+
),
765+
)
766+
.catch(rethrowAs(endpoint, "set invoker"));
757767
}
758768
}
759769

0 commit comments

Comments
 (0)