Local Python Runtime `vercel dev`

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 :frowning:

Hey, @nollied!

Do you have any helpful error logs we can take a look at? :eyes:

@pawlean there are no error logs, it just doesn’t run the backend function locally.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.