Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...
    Documentation
    GitHub

    Integrate

    Bun

    Bun serves a default export that has a fetch function.

    import { page } from './routes';
    import { spool } from './spool';

    export default {
    port: 3000,
    fetch: (request: Request) => spool.handle(request, page)
    };

    examples/courses/bun/ runs this shape. Run bun bun.ts in that folder.