APIs & Integrations

darrengates
Member

Cannot create folder ending in ".functions" for serverless function

In the hubspot docs, it says that serverless functions should exist in a folder with the ".functions" extension:

 

https://developers.hubspot.com/docs/cms/guides/getting-started-with-serverless-functions

 

However, in the CLI tools (using the hs watch command), it throws an error if I attempt to create a folder with this extension. The error in the CLI is:

 

[ERROR] Folder name cannot end with .functions

 

Can anyone explain how I am supposed to start a serverless function, given this error?

 

0 Upvotes
1 Reply 1
PamCotton
Community Manager
Community Manager

Cannot create folder ending in ".functions" for serverless function

Hello @darrengates 

 

 

I would like to share some suggested troubleshooting steps:

1. Remove .functions from the folder name or

2. Renaming the folder to remove .functions

  • Do you still receive an error after doing so?

 

In case you receive an error during testing, I wanted to note that the Serverless functions for the CLI is only available in CMS Hub Enterprise.

 

The CMS Developer Sandbox Accounts do have access to serverless functions, so this can be a great workaround if you would like to try out the serverless functions.

 

I hope this information helps.

Kindly,

Pam

Você sabia que a Comunidade está disponível em outros idiomas?
Participe de conversas regionais, alterando suas configurações de idioma !


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !




0 Upvotes