> ## Documentation Index
> Fetch the complete documentation index at: https://docs.searchcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy to Vercel

> Internal service that deploys files to Vercel

# Internal Service: deploy\_to\_vercel

Deploys the generated files to Vercel, using the existing project.

## Function Signature

```python theme={null}
async def deploy_to_vercel(generate_result: dict) -> dict
```

## Parameters

| Parameter         | Type | Description                    |
| ----------------- | ---- | ------------------------------ |
| `generate_result` | dict | Result from generate\_ai\_site |

## Behavior

For regeneration, this service:

1. Identifies the existing Vercel project by business\_id
2. Creates a new deployment with updated files
3. Does NOT create a new project

## Returns

```python theme={null}
{
    "status": "success",
    "deployment_url": "https://...",
    "deployment_id": "..."
}
```

## Code Location

```
src/app/shared/ai_website/service.py
```
