File tree Expand file tree Collapse file tree 4 files changed +20
-28
lines changed
Expand file tree Collapse file tree 4 files changed +20
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,14 +29,22 @@ Deploy the GCP function (cd examples/with-gcp)
2929 --entry-point=handler \
3030 --runtime nodejs20 \
3131 --trigger-http \
32- --no- allow-unauthenticated \
32+ --allow-unauthenticated \
3333 --project [PROJECT ID]
3434
35+ access the URL (example): https://us-central1-zinc-style-449212-s0.cloudfunctions.net/gcp-function
36+
3537## Authenticate for invocation
3638
37- Since authentication is required, clicking the URL will return Error: Forbidden. Execute this line:
39+ If authentication is required (--no-allow-unauthenticated), execute this line:
3840
3941 $ curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" \
4042 [FUNCTION URL]
4143
4244more info: https://cloud.google.com/functions/docs/securing/authenticating
45+
46+ To invoke the GCP function directly, execute this line:
47+
48+ $ gcloud functions call [FUNCTION NAME]
49+
50+ more info: https://cloud.google.com/functions/docs/running/direct
Original file line number Diff line number Diff line change 1010 },
1111 "dependencies" : {
1212 "@google-cloud/functions-framework" : " ^3.4.5" ,
13- "@stackpress/ingest" : " 0.3.28 "
13+ "@stackpress/ingest" : " 0.3.30 "
1414 },
1515 "devDependencies" : {
1616 "@types/node" : " 22.9.3" ,
Original file line number Diff line number Diff line change 16531653 " @smithy/types" " ^4.1.0"
16541654 tslib "^2.6.2"
16551655
1656- " @stackpress/ingest@0.3.28 " :
1657- version "0.3.28 "
1658- resolved "https://registry.yarnpkg.com /@stackpress/ingest/-/ingest-0.3.28 .tgz#fa9b61a52a61a6ec276181e7a73f763b55c65994 "
1659- integrity sha512-7BCg8PYOO6aTrMI/TLUDiub1PS7R6hZvrqbvlxk77Y/Bql/EOKZUe1SjuRJ1CHMNee+FDCpcZTXBIwTSDJNGhQ ==
1656+ " @stackpress/ingest@0.3.30 " :
1657+ version "0.3.30 "
1658+ resolved "https://registry.npmjs.org /@stackpress/ingest/-/ingest-0.3.30 .tgz#5bff67871b19733141b53171b1a6c660c27e300a "
1659+ integrity sha512-M+SdQuC6HtxYhLt568O9KVnngaywxMgrhy2kpGL9zOYdfvtDUiYTCQojr6+G018TAek03uWK7i3zpaYtkv4DZA ==
16601660 dependencies :
1661- " @stackpress/lib" " 0.3.28 "
1661+ " @stackpress/lib" " 0.3.30 "
16621662 " @whatwg-node/server" " 0.6.7"
16631663 cookie "1.0.2"
16641664
1665- " @stackpress/lib@0.3.28 " :
1666- version "0.3.28 "
1667- resolved "https://registry.yarnpkg.com /@stackpress/lib/-/lib-0.3.28 .tgz#b1c5249d02b11860d1bffe7ac749f89baead4a0a "
1668- integrity sha512-9WqKWUwL/f90d61AuCjo6/vdCqDHr74Kz3184tdoolpmxAFNa9La9JULR2/qoew8yEMo90JM7mZPIU4BPBRMrQ ==
1665+ " @stackpress/lib@0.3.30 " :
1666+ version "0.3.30 "
1667+ resolved "https://registry.npmjs.org /@stackpress/lib/-/lib-0.3.30 .tgz#a31aac974df62a5c991346e50f7abcbc067754b3 "
1668+ integrity sha512-aUuhYxrftwL3CL6nh3knMNCAPjKdOudBgwHCiKQDf7Q/p1ZoTc/iVZ3SXthNDUmsilpgfsjXKipe5jmpD+KK5g ==
16691669 dependencies :
16701670 " @inquirer/prompts" " 7.1.0"
16711671
You can’t perform that action at this time.
0 commit comments