Skip to content

Problems with opengraph-image when using precompute #191

Description

@matixlol

The pattern described for the middleware in the docs https://flags-sdk.dev/frameworks/next/precompute#2-precompute-flags-in-middleware breaks opengraph-image URL generation.

Basically, the URL generated by Next for opengraph-image already includes the JWT flags because it uses the rewritten URL, but the middleware adds the JWT flag again to the URL, which makes the route not match to anything.

Repro: https://github.com/matixlol/next-flags-sdk-bug-repro

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions