@celsian/adapter-fly
v0.5.5
Published
CelsianJS adapter for Fly.io — generates fly.toml, Dockerfile, and multi-region config
Maintainers
Readme
CelsianJS Fly.io Adapter
Generate Fly.io deployment files (fly.toml, Dockerfile) for CelsianJS apps. This is a build-time deploy adapter, not an HTTP handler.
Part of the CelsianJS monorepo. See the root README for full framework docs.
Installation
npm install @celsian/adapter-flyUsage
Reference the adapter from your celsian.config.ts:
import { defineConfig } from '@celsian/core';
import { flyAdapter } from '@celsian/adapter-fly';
export default defineConfig({
build: {
adapter: flyAdapter({
appName: 'my-app',
primaryRegion: 'iad',
regions: ['lhr', 'nrt'],
}),
},
});celsian build then emits the Fly config; deploy with fly deploy. Because Fly
runs a long-lived server, app.task() workers and app.cron() schedulers run
normally here.
License
MIT
