Skip to content

astro-og-canvas@0.13.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Jun 10:24
12947ac

Minor Changes

  • #189 8186730 Thanks @delucis! - Adds auto-detection for the route parameter name to OGImageRoute().

    ⚠️ BREAKING CHANGE: The param option to OGImageRoute() has been removed and your code should be updated to remove it:

    export const { getStaticPaths, GET } = await OGImageRoute({
    - param: 'slug',
      pages: {
        // ...
      },
      getImageOptions: () => {/* ... */},
    });

    astro-og-canvas now detects the param value from your image endpoint’s filename automatically.