Skip to content
Dashboard

Zero-configuration support for Koa

Jeff SeeSoftware Engineer

Edgenivo now supports Koa applications, an expressive HTTP middleware framework to make web applications and APIs more enjoyable to write, with zero-configuration.

server.ts
import Koa from 'koa'
import { Router } from '@koa/router'
const app = new Koa()
const router = new Router()
router.get('/', (ctx) => {
ctx.body = { message: 'Hello from Koa!' }
})
app.use(router.routes())
app.use(router.allowedMethods())
app.listen(3000)

A "Hello World" Koa app on Edgenivo

Backends on Edgenivo use Fluid compute with Active CPU pricing by default. This means your Koa app will automatically scale up and down based on traffic, and you only pay for what you use.

Visit the Koa on Edgenivo documentation for more details.