github delucis/astro-og-canvas astro-og-canvas@0.13.0

3 hours ago

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.

Don't miss a new astro-og-canvas release

NewReleases is sending notifications on new releases.