is it possible to have serverless function for public app ?
SOLVE
Hello,
I am not sure which is the correct forum to ask this question.
I am unsure about the ways for setting up the serverless functions for a public app that I am building.
Can someone list out the steps for building serverless functions, if possible. Kindly do not list out the steps which is for building serverless functions for private apps.
For a public app you can't use HubSpot built-in serverless functions like the private app's one. You have to bring your own backend for calling HubSpot or 3rd parties APIs as well as handling the public app OAuth mechanism.
You can learn more about fetching data in a public app here
HubSpot also provides a boilerplate exemple to handle OAuth and an actual call to the contact API in a custom backend for public apps here.
For a public app you can't use HubSpot built-in serverless functions like the private app's one. You have to bring your own backend for calling HubSpot or 3rd parties APIs as well as handling the public app OAuth mechanism.
You can learn more about fetching data in a public app here
HubSpot also provides a boilerplate exemple to handle OAuth and an actual call to the contact API in a custom backend for public apps here.