CodeBug / api /index.py
vinith17's picture
fix: Vercel structure and agent startup check bypass
6ed38e9
Raw History Blame
274 Bytes
import sys
import os
# Add root directory to path so imports work identically to running locally
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app import app
# Vercel needs the flask app to be exposed exactly like this in api/index.py