CMS Development

cyberwombat
Member

Hubspot extend for CMS react?

I was attempting to deploy a CMS React/Serverless project like this https://github.com/HubSpot/cms-react/tree/main/examples/serverless but it seems this requires Content Hub Enterprise. The error message says "Your HubSpot plan doesn't include endpoint for app functions, so you can't use them to create app functions with endpoint. Remove the `endpoint` property from /app/app.functions/serverless.json. If you need access, talk to your admin about upgrading your plan."

When I did a UI extension I was able to call the serverless functions without an HTTP call (i.e. no endpoint needed) by wrapping my app in "hubspot.extend<'crm.record.tab'>(({ actions, context, runServerlessFunction }) => "

 

I cannot find info on whether this works or may soon work for CMS React. Does anyone know?  I am trying to build a rich text editor for the UI extensions to get around the fact that HS could not bother makign that an available element so im reluctant to spend $15K a year to fix that ommision.

0 Upvotes
3 Replies 3
cyberwombat
Member

Hubspot extend for CMS react?

Ah I see the changelog. I just got renamed to "serverless". However this seems to refer to the UI extensions and I am not seeing a reference the CMS React?

0 Upvotes
cyberwombat
Member

Hubspot extend for CMS react?

Are you saying that the runServerless for UI extensions which is still in beta is already deprecated? or are you referring to some runServerless for CMS I was wondering existed.  Curious as to why would scrap such a nice feature. Seems that NextJS/React is moving towards calling server functions directly instead of the old axios/fetch process. 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

Hubspot extend for CMS react?

Hey, @cyberwombat 👋 Thanks for your question. The `runServerlessFunction` is in maintenance  — "Backward Compatibility: The runServerlessFunction method remains available to maintain support for current implementations; however, it will be deprecated in the future." Developer Changelog"

It doesn't explain why it worked for you in the past without the matching subscription. I'd recommend reaching out to support to get that clarification. I'd frame the question as product-related and not a custom coding question. 

 

The error you received is correct and matches what is published in the related dev docs:

CleanShot 2025-01-22 at 10.28.17@2x.png

 

If you have feedback on this feature, DevRel created this feedback form for developer-related feedback and suggestions. It's not a form to get troubleshooting assistance, and I know they value honest and direct feedback from developers who work with and use our tools and products. 

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes