I have a python api from the vercel docs:
my-project/api/pyhealth.py
:
from http.server import BaseHTTPRequestHandler
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
when deploying on vercel, i can visit the api nicely. however, when I run the local vercel dev
, the python function isn’t running