Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Problems with opengraph-image when using precompute #191

Open

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /