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

    Integrate

    Netlify Edge Functions

    An edge function runs in front of the site. context.next() returns the response the site would have sent, which handle decorates.

    import type { Config, Context } from '@netlify/edge-functions';
    import { spool } from './spool';

    export default (request: Request, context: Context) => spool.handle(request, () => context.next());

    export const config: Config = { path: '/*' };

    examples/courses/netlify-edge/ runs this shape. Run netlify dev in a Netlify project that holds the folder.