Crest Design
HubSpot 7 min read

HubSpot serverless functions migration before February 2027

A HubSpot serverless functions migration guide: what stops on 1 February 2027, how to move design manager endpoints to developer projects, code and fixes.

Crest Design
A guide to moving HubSpot design manager serverless functions to developer projects before they stop running.

If your HubSpot website runs any custom back-end logic, such as a quote calculator, a stock lookup, a gated download check or a form that posts to another system, there's a good chance it lives in a design manager serverless function. This post is for marketing and web teams on Content Hub Enterprise who need a HubSpot serverless functions migration plan: what HubSpot changed in November 2026, how the replacement works, and how to move each function without breaking live pages.

What changed, and why your site may break in February

On 3 November 2026 HubSpot announced the sunset of serverless functions built in the design manager, alongside older Node.js runtimes for workflow custom code. The timeline is short:

  • 3 November 2026: you can no longer create new design manager functions.
  • 17 November 2026: existing design manager functions can no longer be edited.
  • 1 February 2027: design manager functions stop running, and requests to /_hcms/api/ endpoints fail.

The awkward part is that nothing looks wrong until the last date. Pages keep rendering. The failure shows up in the parts that call the function: a pricing widget that never loads, a form that hangs on submit, a member area that can't check access. HubSpot won't move anything for you, so someone has to find each function, rebuild it and repoint whatever calls it.

If you've already handled the workflow side of this change, our guide to upgrading HubSpot custom code actions to Node 24 covers that half. This post deals with the website half.

Timeline of the HubSpot design manager serverless functions sunset and the move from /_hcms/api/ to /hs/serverless/ in a developer project.
The three dates in HubSpot's sunset, and where your endpoints move.

How project-based serverless functions work

A design manager function was a folder ending in .functions, holding JavaScript files and one serverless.json that mapped endpoint names to files. It sat beside your theme in the design manager, and HubSpot served it at https://your-domain/_hcms/api/endpoint-name.

The replacement lives in a developer project, the same framework HubSpot now uses for apps, app cards and webhooks. On platform version 2026.03 and later, a function is an app-function component inside a private app with static authentication. Three differences matter in practice:

  • One config file per function. Instead of a shared serverless.json, each function gets a *-hsmeta.json file in src/app/functions/ with a uid, an entrypoint, a secretKeys list, and an endpoint block that makes it public.
  • A new public address. Public functions are served at https://your-domain/hs/serverless/your-path, where the path comes from config.endpoint.path.
  • Explicit methods. config.endpoint.method is an array such as ["POST"] or ["GET", "POST"]. A method you don't list is refused.

Projects are deployed with the HubSpot CLI (hs project upload), with builds and history you can roll back to. That's the real reason for the change: design manager code was edited in place with no build step, while project code goes through version control and a deploy. Projects on platform versions 2026.03 and 2026.09 run on Node.js 24. Older projects on 2023.1, 2023.2 or 2025.1 need hs project migrate first.

One detail catches teams out: endpoint paths are shared across the whole HubSpot account, not scoped to a project. If two projects declare the same path, the most recently deployed one wins.

How to migrate HubSpot serverless functions, step by step

We move functions one at a time, with the old one left running until the new one has handled real traffic. That way every step has a rollback.

Five steps to migrate a HubSpot serverless function: inventory, rebuild in a project, deploy and test, repoint callers, watch logs and retire.
Move one function at a time, and keep the old one until the new one is proven.

1. Build an inventory of functions and callers

Run hs cms function list to see every design manager endpoint in the account. Then search for callers: fetch the theme with hs fetch and search for _hcms/api across templates, modules, JavaScript files and HubL. Don't forget site header and footer HTML in settings, embedded scripts in landing pages, and other sites or apps outside HubSpot that call the endpoint. Write it all in a simple table: endpoint, method, secrets used, and every place that calls it.

2. Rebuild the function in a developer project

Create or open a project on platform 2026.03 or later and add a function with hs project add --features app-function. Set the endpoint path and methods in the generated *-hsmeta.json, for example "endpoint": { "path": "quote-request", "method": ["POST"] }, and list any secrets in secretKeys. Add each secret to the account with hs secret add QUOTE_SERVICE_KEY.

The handler changes shape too. Design manager functions received a sendResponse callback; project functions return the response. Here's a typical form-forwarding function after the move. It goes in src/app/functions/quote-request.js; change the target URL and secret name to your own:

// Developer project function (platform 2026.03, Node.js 24)
exports.main = async (context) => {
  const { email, message } = context.body || {};
  if (!email) {
    return { statusCode: 400, body: { error: 'Email is required' } };
  }

  // Secret listed in secretKeys and added with: hs secret add QUOTE_SERVICE_KEY
  const res = await fetch('https://api.example.com/quotes', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${process.env.QUOTE_SERVICE_KEY}`,
    },
    body: JSON.stringify({ email, message }),
  });

  return { statusCode: res.ok ? 200 : 502, body: { ok: res.ok } };
};

Node.js 24 has fetch built in, so you can usually drop older request libraries from the function's package.json.

3. Deploy and test the new address

Run hs project upload, then call https://your-domain/hs/serverless/quote-request directly with a test request before any page uses it. Check the response codes for a good request, a bad request and a wrong method.

4. Repoint the callers

On the front end the change is usually one line, from fetch('/_hcms/api/quote-request', …) to fetch('/hs/serverless/quote-request', …). Where several modules call the same function, we put the base path in one theme setting or a single JavaScript constant, so the next change happens in one place.

5. Watch, then retire

Watch the project's function logs in HubSpot for a few days of real traffic. Once the old endpoint stops receiving calls, delete it, so nobody mistakes it for the live version later.

What we've learned from migrations like this

A few patterns come up again and again on HubSpot builds:

  • Don't move everything in one release. A single big switch means one bad path breaks every form at once. One function per release is slower but easy to undo.
  • Retire functions nobody needs. Some design manager functions were built for one campaign years ago. If the inventory shows no callers, don't rebuild them.
  • Ask whether HubSpot is still the right home. If a function talks mostly to outside systems, a small Node.js service you host may suit it better. For anything that reads or writes CRM data, we'd usually keep it in a HubSpot project, where secrets and access stay inside the account.
  • Put the project in version control. It's the point of the new model, and it makes handover between your team and an agency much cleaner.

Troubleshooting

Symptom Likely cause Fix
404 on /hs/serverless/… The project isn't deployed, the path in config.endpoint.path differs from the URL, or you're testing on a domain not connected to the account Check the latest build succeeded, match the path exactly, and test on a connected domain
405 or a refused request on submit The method isn't listed in config.endpoint.method Add it, for example ["GET", "POST"], and redeploy
Function runs but the external call fails The secret isn't in secretKeys, or wasn't added to the account List it in the config, run hs secret add, and redeploy
A different function answers your path Two projects declare the same path; the latest deploy wins Give every endpoint a unique, descriptive path across the account
Old endpoint still getting traffic after the switch A cached script, a landing page embed or an external site still calls /_hcms/api/ Search again, clear the page cache, and update external callers before 1 February 2027

Questions people ask

Do I need Content Hub Enterprise for project functions?

Design manager functions already required it, so most affected accounts have it. Check the public endpoint requirements for your account in HubSpot's serverless functions reference before planning the rebuild.

Can I still edit an old function to patch a bug?

No. Since 17 November 2026 existing design manager functions are read-only. Any fix now means rebuilding the function in a project, which is a good moment to migrate it properly.

It's the same direction. HubSpot is moving custom code into projects, as with the move covered in our post on HubSpot service keys and legacy private apps and the rebuild of legacy CRM cards as app cards.

Why this matters for your website and leads

Serverless functions tend to sit on the pages that make money: quote forms, calculators, booking checks and gated content. If they stop on 1 February 2027, leads stop quietly, often without an error anyone sees. A planned migration also leaves you with code in version control, deploy history and documented secrets, which makes the next change cheaper and any agency handover safer.

Your checklist: list every function and caller, rebuild one at a time in a 2026.03 project, test the new address, repoint callers, watch logs, and retire the old version well before February.

If you'd like a hand planning or running the move, our HubSpot CMS development team is happy to talk it through via our contact page.

(over to you)

Planning a build like this?

Tell us what you're building and we'll come back with ideas and next steps.