跳到正文
Vercel Blog(vercel.com)· Yury Selivanov·· 2026-10-15品質評分77

Python 在 Vercel 正式支援

Python on Vercel is now generally available

重點導讀

Python 已成為 Vercel 的首席語言,允許開發者在同一專案中同時部署前後端與 AI 代理。

  • 框架支援:自動偵測並配置 FastAPI、Flask、Django,並可透過 Vercel CDN 服務靜態資源。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

正文 · 原文

Python is now a first-class language and runtime on Vercel. Build APIs, full-stack applications, and AI agents with native Python SDKs and a shared development and deployment workflow for your Python backend and JavaScript frontend.

Python framework and runtime support

Vercel handles the infrastructure so you can focus on your application:

  • Automatic framework support: FastAPI, Flask, and Django applications are automatically recognized and configured, with framework-specific support for serving static assets through the Vercel CDN.

  • Native Python runtime and tooling: Vercel runs CPython on Linux and supports uv and pyproject.toml for dependency management.

  • Compute for APIs and workers: Scale request-driven applications with Fluid compute and run long-running pull-based workloads with Vercel Daemons.

Native Python SDKs

Within your application, Python SDKs let you build agents, run untrusted code, and orchestrate durable workflows.

  • Sandbox: Give your application or agent an isolated Linux VM on demand.

  • AI SDK for Python (Beta): Generate or stream model responses and call tools. Get started with uv add ai.

  • Workflow SDK for Python (Beta): Persist execution state and retry failed workflow steps.

  • Queues (Beta): Send and receive messages for background work.

  • Connect: Obtain credentials for calling external APIs.

  • Blob: Upload and retrieve files in object storage.

Use the SDKs individually or combine them in the same Python application.

Your frontend and backend, together

For full-stack applications, Vercel Services allows you to deploy your frontend and backends together in one project, with shared previews and atomic deployments and rollbacks. Within that project, you can view logs by service and connect backends privately through service bindings.

For a frontend in frontend/ and a FastAPI app defined in backend/main.py, add this vercel.toml at the repository root.

Requests under /api/ reach matching FastAPI routes with the path unchanged, while other requests reach the frontend. Run both services locally with vercel dev, then deploy them together from the same repository.

Read the Python documentation to get started.

Read more

來源: Vercel Blog (vercel.com)
開啟原文

讀者討論

理性交流 · 即時討論