I am following your doc to create a Python serverless function. It runs fine in production, but returns 404 in local (running vercel dev). Why is that?
My project structure:
appapi|- hello.pyrequirements.txtvercel.json// requirements.txt
venmo-api==0.3.1// vercel.json
{ "buildCommand": "npx convex deploy --cmd 'npm run build'", "installCommand": "npm install --legacy-peer-deps", "functions": { "api/**": { "excludeFiles": "{.next,*.cache,node_modules,public,app}/**" } }}// hello.py
from http.server import BaseHTTPRequestHandlerfrom venmo_api import Client
class handler(BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.send_header('Content-type', 'text/plain') self.end_headers() self.wfile.write('Hello, world!'.encode('utf-8')) return