***

title: createGcfHandler
slug: /reference/typescript/agents/configuration/serverless-adapter/create-gcf-handler
description: Create a Google Cloud Functions-compatible handler from a Hono app.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Static method that creates a Google Cloud Functions-compatible handler from a
Hono app. The returned function accepts GCF request/response objects.

## **Parameters**

<ParamField path="app" type="{ fetch: (req: Request) => Promise<Response> }" required={true} toc={true}>
  A Hono-compatible application with a `fetch` method.
</ParamField>

## **Returns**

`(req: any, res: any) => Promise<void>` -- A GCF handler function.

## **Example**

```typescript {4}
import { ServerlessAdapter } from '@signalwire/sdk';

// Export as Google Cloud Function
export const handler = ServerlessAdapter.createGcfHandler(app);
```