• Product Introduction
  • Quick Start
    • Importing a Git Repository
    • Starting From a Template
    • Direct Upload
    • Start with AI
  • Framework Guide
    • Frontends
      • Vite
      • React
      • Vue
      • Other Frameworks
    • Backends
    • Full-stack
      • Next.js
      • Nuxt
      • Astro
      • React Router
      • SvelteKit
      • TanStack Start
      • Vike
    • Custom 404 Page
  • Project Guide
    • Project Management
    • edgeone.json
    • Configuring Cache
    • Error Codes
  • Build Guide
  • Deployment Guide
    • Overview
    • Create Deploys
    • Manage Deploys
    • Deploy Button
    • Using Github Actions
    • Using Gitlab CI/CD
    • Using CNB Plugin
    • Using IDE PlugIn
    • Using CodeBuddy IDE
  • Domain Management
    • Overview
    • Custom Domain
    • HTTPS Configuration
      • Overview
      • Apply for Free Certificate
      • Using Managed SSL Certificate
    • Configure DNS CNAME Record
  • Observability
    • Overview
    • Metric Analysis
    • Log Analysis
  • Pages Functions
    • Overview
    • Edge Functions
    • Cloud Functions
      • Overview
      • Node Functions
  • Middleware
  • KV Storage
  • Edge AI
  • API Token
  • EdgeOne CLI
  • Pages MCP
  • Message Notification
  • 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
      • Payload Integration
    • Authentication
      • Supabase Integration
      • Clerk Integration
  • Best Practices
    • Using General Large Model to Quickly Build AI Application
    • Use the DeepSeek model to quickly build a conversational AI site
    • Building an Ecommerce Platform with Shopify
    • 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

Backends

EdgeOne Pages provides high-quality support for mainstream backend frameworks, designed to optimize your backend development and operating experience. In most cases, you do not need any additional configuration to complete the deployment.
Express
Koa
MySQL



Express/Koa framework:
ALL routing services are consolidated in a function file, and the file name must be in [[]] format, such as [[default]].js.
No need to start up an HTTP Server or set port listening.
The framework instance must be exported, otherwise the builder will not recognize it as a function export default app.

Express.js

Express.js is a Node.js-based Web application framework that provides a series of powerful features to build single-page, multi-page, and composite Web applications. It is known for its flexibility and minimalistic features, allowing developers free choice of components based on project requirements.
Refer to the following example to quickly create an Express.js app:
// ./node-functions/express/[[default]].js
// No need to start up an HTTP Server
import express from "express";
const app = express();

app.use((req, res, next) => {
console.log(`[Log] ${req.method} ${req.url}`);
next();
});

app.get("/", (req, res) => {
res.json({ message: "Hello from Express on Node Functions!" });
});

// The express instance must be exported, otherwise the builder will not recognize it as a function
export default app;
Underwrite before deployment install all dependencies, and use edgeone pages dev to develop locally and test.

Koa.js

Koa.js is a next-generation Node.js Web framework developed by the Express team. It leverages async/await grammar to handle asynchronous operations via middleware in a more elegant way, thereby achieving more concise and expressive code. Koa.js is more lightweight, not bundled with any middleware, and provides larger freedom.
Refer to the following example to quickly create a Koa.js app:
// ./node-functions/koa/[[default]].js
import Koa from 'koa';
import Router from '@koa/router';

const app = new Koa();
const router = new Router();

app.use(async (ctx, next) => {
const start = Date.now();
await next();
const ms = Date.now() - start;
ctx.set('X-Response-Time', `${ms}ms`);
});

router.get('/', async (ctx) => {
ctx.body = { message: 'Hello from Koa on Node Functions!' };
});

app.use(router.routes());
app.use(router.allowedMethods());

// The express instance must be exported, otherwise the builder will not recognize it as a function
export default app;
Koa.js is suitable for backend services that require high customization and high performance. Before deployment, please ensure all dependencies are installed and use edgeone pages dev to develop locally and test.
ai-agent
You can ask me like
How to Get Started with EdgeOne Pages?