Pages Cloud Functions Now Support Python and Go Runtimes

Pages Cloud Functions now support two new runtimes: Python and Go. You can write backend APIs in these languages within the same project and deploy them alongside your frontend pages by pushing to your repository.
With this update, the cloud-functions directory recognizes .py and .go files. The platform automatically matches the corresponding runtime, and the file path becomes the API path.
Python Runtime
The Python runtime for Cloud Functions offers two modes:
- Handler Mode: Uses the standard library with no third-party dependencies. Each file maps to a single API endpoint — simple and straightforward.
- Framework Mode: Supports native usage of both WSGI (synchronous, e.g. Flask, Django) and ASGI (asynchronous, e.g. FastAPI, Sanic) frameworks. The platform detects the framework type automatically — no extra configuration needed.
For dependency management, third-party packages are detected automatically during build. You can also specify them manually via requirements.txt. The runtime environment is Python 3.10.
Go Runtime
The Go runtime also comes in Handler Mode and Framework Mode:
- Handler Mode: Pure standard library approach with no framework dependencies. The file name determines the route path.
- Framework Mode: Supports popular frameworks like Gin, Echo, Fiber, and Chi. The platform handles port adaptation and path mapping automatically.
The Go build process is fully automated — framework detection, route mapping, and cross-compilation all happen without manual configuration. The runtime environment is Go 1.26.
Getting Started
For local development, update EdgeOne CLI to the latest version and run edgeone pages dev in your project directory. This starts both the frontend and Cloud Functions services on the same port, eliminating the need to deal with CORS issues.
Once verified locally, push your code to the repository and the platform will handle the build and deployment automatically.
Documentation:
Questions or feedback? Join us on Discord.