• Plugin configuration function.

    We give the plugin configuration function a name, so it can be easily spotted in the Eleventy:ErrorHandler debug logs.

    Hosting providers like Cloudflare Pages and Netlify allow to define custom response headers in a plain text file called _headers. This file must be placed in the publish directory of your site (e.g. usually _site for a Eleventy site).

    https://developers.cloudflare.com/pages/platform/headers/ https://docs.netlify.com/routing/headers/

    Parameters

    • eleventyConfig: EleventyConfig
    • options: {
          allowDeprecatedDirectives: boolean;
          directives?: any;
          excludePatterns: string[];
          globPatterns: string[];
          globPatternsDetach: string[];
          hosting?: string;
          includePatterns: string[];
          jsonRecap: boolean;
          reportOnly: boolean;
      }
      • allowDeprecatedDirectives: boolean
      • Optional directives?: any
      • excludePatterns: string[]
      • globPatterns: string[]
      • globPatternsDetach: string[]
      • Optional hosting?: string
      • includePatterns: string[]
      • jsonRecap: boolean
      • reportOnly: boolean

    Returns void