@flightdev/adapter-deno
v0.0.7
Published
Deno adapter for Flight Framework - deploy to Deno Deploy or self-host with Deno
Maintainers
Readme
@flightdev/adapter-deno
Deno Deploy adapter for Flight Framework. Deploy to Deno's global edge network.
Table of Contents
Installation
deno add @flightdev/adapter-deno
# or with npm
npm install @flightdev/adapter-denoQuick Start
// flight.config.ts
import { defineConfig } from '@flightdev/core';
import deno from '@flightdev/adapter-deno';
export default defineConfig({
adapter: deno(),
});Configuration
deno({
// Deno Deploy specific
port: 8000,
// Enable static file serving
serveStatic: true,
// Static files directory
staticDir: 'public',
});Deno Deploy
Deploy with deployctl
# Install deployctl
deno install -Arf jsr:@deno/deployctl
# Build
deno task build
# Deploy
deployctl deploy --project=my-app --prod .output/server/main.tsdeno.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 assetsLicense
MIT
