MCPcopy Create free account
hub / github.com/vercel/vercel / main

Function main

python/vercel-runtime/src/vercel_runtime/dev.py:544–555  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

542
543
544def main() -> None:
545 host = "127.0.0.1"
546 raw_port = os.environ.get("PORT")
547 if not raw_port:
548 _log.error("PORT environment variable is required")
549 sys.exit(1)
550 port = int(raw_port)
551
552 if _wsgi_user_app is not None:
553 _start_wsgi(host, port)
554 else:
555 _start_asgi(host, port)

Callers

nothing calls this directly

Calls 5

_start_wsgiFunction · 0.85
_start_asgiFunction · 0.85
errorMethod · 0.80
getMethod · 0.65
exitMethod · 0.45

Tested by

no test coverage detected