• Product Introduction
  • Quick Start
    • Importing a Git Repository
    • Starting From a Template
    • Direct Upload
  • Framework Guide
    • Frontends
    • Backends
    • Full-stack
      • Next.js
  • Project Guide
    • Project Management
    • edgeone.json
    • Configuring Cache
    • Error Codes
  • Build Guide
  • Deployment Guide
    • Overview
    • Create Deploys
    • Manage Deploys
    • Deploy Button
    • Use Github Actions
    • Using CNB Plugin
    • Using IDE Plug-In
    • Using CodeBuddy IDE
  • Domain Management
    • Overview
    • Custom Domain
    • Configuring an HTTPS Certificate
    • How to Configure a DNS CNAME Record
  • Pages Functions
    • Overview
    • Edge Functions
    • Node Functions
  • Log Analysis
  • KV Storage
  • Edge AI
  • API Token
  • EdgeOne CLI
  • Pages MCP
  • Integration Guide
    • AI
      • Dialogue Large Models Integration
      • Large Models for Images Integration
    • Database
      • Supabase Integration
      • Pages KV Integration
    • Ecommerce
      • Shopify Integration
      • WooCommerce Integration
    • Payment
      • Stripe Integration
      • Integrating Paddle
    • CMS
      • WordPress Integration
      • Contentful Integration
      • Sanity Integration
    • Authentication
      • Supabase Integration
      • Clerk Integration
  • Best Practices
    • Using General Large Model to Quickly Build AI Application
    • Use the Deepseek-R1 model to quickly build a conversational AI site
    • Building an Ecommerce Platform with WordPress + WooCommerce and GatsbyJS
    • Building a SaaS Site Using Supabase and Stripe
    • Building a Company Brand Site Quickly
    • How to Quickly Build a Blog Site
  • Migration Guides
    • Migrating from Vercel to EdgeOne Pages
    • Migrating from Cloudflare Pages to EdgeOne Pages
    • Migrating from Netlify to EdgeOne Pages
  • Troubleshooting
  • FAQs
  • Contact Us
  • Release Notes

Overview

Pages Functions is a Serverless architecture solution that allows you to run server-side code without configuration or managing servers. It automatically scales based on website access traffic and provides stronger concurrency capability through EdgeOne global edge nodes. You can use Functions to deploy APIs and connect multiple databases, helping you achieve better integration of front-end and back-end projects and deployment.

At deployment time, Pages automatically identifies the project framework and optimizes configurations, enabling intelligent routing and low-latency access based on the EdgeOne edge network. Currently, two types of Functions are available.
Node Functions provide full Node.js compatibility, support native modules and long calculation time, and are suitable for business scenarios deeply dependent on the Node.js ecosystem.
Edge Functions rely on global edge nodes, provide ultra-low latency and millisecond-level cold startup, and are suitable for high-concurrency, delay-sensitive business.


Quick Start

Under the ./node-functions directory, use the following example code to create your first Node Functions:
export default function onRequest(context) {
return new Response('Hello from Node Functions!');
}
or through a Template to deploy application deployment of the Edge Functions project.

Under the ./edge-functions directory, use the following example code to create your first Edge Functions:
export default function onRequest(context) {
return new Response('Hello from Edge Functions!');
}
or through a Template to deploy application deployment of the Edge Functions project.


Difference between Node Functions and Edge Functions

Features
Node Functions
Edge Functions
the location of running
Cloud Central
global edge node
Cold Startup Duration
relatively long
millisecond-level
latency performance
Moderately Low
extremely low
runtime environment
Node.js Runtime
Edge Runtime
Scenarios
Deeply dependent on the Node.js ecosystem
complex data processing
relatively long execution time
high-concurrency, latency-sensitive
short execution time

For more information, see the referenced document Node Functions and Edge Functions.