Skip to main content

Internal Service: deploy_to_vercel

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

Function Signature

async def deploy_to_vercel(generate_result: dict) -> dict

Parameters

ParameterTypeDescription
generate_resultdictResult 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

{
    "status": "success",
    "deployment_url": "https://...",
    "deployment_id": "..."
}

Code Location

src/app/shared/ai_website/service.py