Deno adapter for Flight Framework - deploy to Deno Deploy or self-host with Deno
npm install @flightdev/adapter-denobash
deno add @flightdev/adapter-deno
or with npm
npm install @flightdev/adapter-deno
`
---
Quick Start
`typescript
// flight.config.ts
import { defineConfig } from '@flightdev/core';
import deno from '@flightdev/adapter-deno';
export default defineConfig({
adapter: deno(),
});
`
---
Configuration
`typescript
deno({
// Deno Deploy specific
port: 8000,
// Enable static file serving
serveStatic: true,
// Static files directory
staticDir: 'public',
});
`
---
Deno Deploy
$3
`bash
Install deployctl
deno install -Arf jsr:@deno/deployctl
Build
deno task build
Deploy
deployctl deploy --project=my-app --prod .output/server/main.ts
`
$3
`json
{
"tasks": {
"dev": "flight dev",
"build": "flight build",
"start": "deno run -A .output/server/main.ts"
}
}
`
---
Build Output
`
.output/
├── server/
│ └── main.ts # Deno server entry
└── static/ # Static assets
``