Stratal — Hono-style entry point for Cloudflare Workers.
Eagerly bootstraps the Application at construction time, dynamically importing cloudflare:workers for env and waitUntil.
cloudflare:workers
import { Stratal } from 'stratal'import { AppModule } from './app.module'export default new Stratal({ module: AppModule }) Copy
import { Stratal } from 'stratal'import { AppModule } from './app.module'export default new Stratal({ module: AppModule })
Static
Internal
Resolves the Application instance from the static singleton. Used by worker base classes (DurableObject, Workflow, WorkerEntrypoint) to access the DI container without going through Cloudflare RPC.
Stratal — Hono-style entry point for Cloudflare Workers.
Eagerly bootstraps the Application at construction time, dynamically importing
cloudflare:workersfor env and waitUntil.Example